You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (Jira)" <ji...@apache.org> on 2023/09/16 16:50:00 UTC

[jira] [Resolved] (PDFBOX-5666) error encountered in splitting pdf using ver 3.0.0

     [ https://issues.apache.org/jira/browse/PDFBOX-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-5666.
----------------------------------------
    Fix Version/s: 3.0.1 PDFBox
                   4.0.0
       Resolution: Fixed

The parser creates a COSDIctionary first when parsing a COStream. Afterwards the COSStream is created using the items from the COSDictionary. But the object key wasn't transferred and if the object number was coincidentally the highest one of the destination pdfs then it got overwritten by one of the new objects.

It should work now

> error encountered in splitting pdf using ver 3.0.0
> --------------------------------------------------
>
>                 Key: PDFBOX-5666
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5666
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>              Labels: regression
>             Fix For: 3.0.1 PDFBox, 4.0.0
>
>         Attachments: km-split-result-page1.pdf, km.pdf
>
>
> From sethmu tha on the mailing list
> I use the new version as
> > java -jar pdfbox-app-3.0.0.jar split -i=km.pdf -endPage=4 -outputPrefix=test -startPage=2
> There is output file "test-1.pdf". But when it was opened, it shows error message:
> Cannot extract the embedded font 'FPHGCA+PyidaungsuBook'. Some characters may not display or print correctly.
> However, when I tried with pdfbox ver 2.0.29,
> > java -jar pdfbox-app-2.0.29.jar PDFSplit -startPage 2 -endPage 4 -outputPrefix test km.pdf
> The output file "test-1.pdf" file shows all pages correctly without any issue.
> In fact, when I use the another pdf file which has many pages, sometimes I encounter blank pages when using the ver 3.0.0, but when I use ver 2.0.29, there is no such issue.



--
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