You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/06/01 17:33:04 UTC

[jira] [Commented] (PDFBOX-3815) Removing the first page doesn't work

    [ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org