You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (Jira)" <ji...@apache.org> on 2022/07/18 15:15:00 UTC

[jira] [Commented] (PDFBOX-5478) Can't write text to the last page

    [ https://issues.apache.org/jira/browse/PDFBOX-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17568058#comment-17568058 ] 

Maruan Sahyoun commented on PDFBOX-5478:
----------------------------------------

For the new content you'd like to add use

[https://pdfbox.apache.org/docs/2.0.8/javadocs/org/apache/pdfbox/pdmodel/PDPageContentStream.html#PDPageContentStream(org.apache.pdfbox.pdmodel.PDDocument,%20org.apache.pdfbox.pdmodel.PDPage,%20org.apache.pdfbox.pdmodel.PDPageContentStream.AppendMode,%20boolean,%20boolean)]

And you don't have to add the page again. You can reuse the existing page as you'd like to add content to the already existing page.

Hope that helps.

 

BTW. this question is better asked on the users mailing list  [https://pdfbox.apache.org/mailinglists.html]  as this is a bug tracker.

 

> Can't write text to the last page
> ---------------------------------
>
>                 Key: PDFBOX-5478
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5478
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.26
>         Environment: Windows10
>            Reporter: Dylan Yau
>            Priority: Minor
>         Attachments: code.png
>
>
> Can't write a text to the last page :( This text is should be below the table, but this code can't do it, which method can i use to write the text dynamically? thx!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org