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

Cole Ferrier commented on PDFBOX-811:
-------------------------------------

the other work around i found is after you call setNames on your 
PDEmbeddedFilesNameTreeNode

remove the limits:

((COSDictionary )efTree.getCOSObject()).removeItem(COSName.LIMITS);

ugly hack, but it works, without having to recompile pdfbox
                
> EmbeddedFiles example does not work
> -----------------------------------
>
>                 Key: PDFBOX-811
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-811
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.2.1
>         Environment: Java 1.6, Windows XP
>            Reporter: Markus Horehled
>
> Running the EmbeddedFiles example does not work properly. Obviously it has 
> stopped working with Version 1.1.0 already at least. I've tried the same 
> example with pdfbox 0.7.3 and there it is working without any problems. 
> Although it seems (according to the document's size) that the file is 
> embedded, there is no entry visible in the PDF's attachment/document section 
> ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to