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

Tilman Hausherr commented on PDFBOX-3815:
-----------------------------------------

Please attach a PDF where you have that effect. Because I just tried with a 
file and it worked. Note that the answer the SO question you link to turned out 
to be a wrong directory.

> Removing the first page doesn't work
> ------------------------------------
>
>                 Key: PDFBOX-3815
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3815
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Windows 10, Java 8; PDF 1.5
>            Reporter: Sascha Becher
>
> Does nothing to page 1:
> try (PDDocument doc = PDDocument.load(file)) {
>       doc.removePage(0);
>       doc.save(file);
>       doc.close();
> }
> This would remove page 2:
> doc.removePage(1);
> seems not to be new: 
> https://stackoverflow.com/questions/37865415/pdfbox-does-not-remove-first-page
> If there are any restrictions to removing pages, the javadoc should note this.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to