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

Tilman Hausherr edited comment on PDFBOX-2742 at 4/1/15 8:36 PM:
-----------------------------------------------------------------

The file has global resources but the code ignores them:
{code}
    protected void processNextPage( PDPage page ) throws IOException
    {
        createNewDocumentIfNecessary();
        PDPage imported = currentDocument.importPage( page );
        imported.setCropBox( page.findCropBox() );
        imported.setMediaBox( page.findMediaBox() );
        // only the resources of the page will be copied
        imported.setResources( page.getResources() );
{code}
In 1.8 findResources() would get all available resources. For some reason, it 
was chosen not to do this. Btw in the trunk it works fine.


was (Author: tilman):
The file has global resources but the code ignores them:
{code}
    protected void processNextPage( PDPage page ) throws IOException
    {
        createNewDocumentIfNecessary();
        PDPage imported = currentDocument.importPage( page );
        imported.setCropBox( page.findCropBox() );
        imported.setMediaBox( page.findMediaBox() );
        // only the resources of the page will be copied
        imported.setResources( page.getResources() );
{code}

> PDFSplit ignores global resources
> ---------------------------------
>
>                 Key: PDFBOX-2742
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2742
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities, Writing
>    Affects Versions: 1.8.9, 1.8.10
>         Environment: Linux+Java (Oracle)
>            Reporter: Wolfgang S. Kechel
>             Fix For: 1.8.10
>
>         Attachments: original.pdf
>
>
> When using PDFsplit to split the attached one page doc in single pages the 
> result page is incomplete.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to