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 2019/01/22 16:40:00 UTC

[jira] [Commented] (PDFBOX-4440) pdf dense merge

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

Tilman Hausherr commented on PDFBOX-4440:
-----------------------------------------

I don't see a need for this. You need it because another software is too slow. The right way would be to speed up / replace that software.

To do what you want, you would have to render the existing files (this takes time), find out where the blank stops, then import the page at the appropriate location, set appropriate cropbox / media boxes, and also consider that you don't want a huge page, you want A4 pages or whatever paper format is used in your culture.

See also these answers by mkl:
https://stackoverflow.com/questions/47295391/create-a-one-page-pdf-from-two-pdfs-using-pdfbox
https://stackoverflow.com/questions/26256546/how-to-insert-an-pdpage-within-another-pdpage-with-pdfbox?lq=1

Another disadvantage is that your result file will be bloated due to the multiple usage of font(s).


> pdf dense merge
> ---------------
>
>                 Key: PDFBOX-4440
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4440
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Utilities
>            Reporter: marvin he
>            Priority: Major
>
> Hi All,
> Does PDFBox support dense merge which means remove blank or white-space at end of page
> Here is merge code [https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PDFMergerExample.java]
> And I also answer a question on SO :  [https://stackoverflow.com/q/54283827/2675552]   It has a detail description.
>      If you have any solutions, please contact me.
> Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org