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

Tilman Hausherr commented on PDFBOX-4816:
-----------------------------------------

You would need to understand the PDF operators and the parameters. It might be 
difficult or impossible, e.g. if the text uses a font subset. The problem is 
that unlike page content streams, PDFormXObject cannot have several content 
streams.

Can you attach the PDF?

Alternatively, why not just write on the page directly, i.e. append a new page 
content stream?

> Xobject text content updation
> -----------------------------
>
>                 Key: PDFBOX-4816
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4816
>             Project: PDFBox
>          Issue Type: Wish
>          Components: Text extraction
>            Reporter: Saravanan
>            Priority: Major
>
> I need to add some text inside a xobject text stream using PDFBox 
> programmatically , we don't see set methods for xobject can someone help us 
> to find a method using which we can update the existing xobject content 
> stream?
> Finally after adding this text in the content stream, we need to add the same 
> element in PDF structure tree element, some guidance on how we could add 
> xobject elements to structure tree will be helpful.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to