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

Tilman Hausherr commented on PDFBOX-5472:
-----------------------------------------

Merging could be a problem if these PDDocument objects were generated at that 
time, i.e. by writing text using subset fonts. Because the subsetting happens 
when saving.

You could try to save into a ByteArrayOutputStream, this would use less memory 
(but still a lot).

> PDDocument save(File) is used to create file in unix. But file is being 
> created with link count as 0
> ----------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5472
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5472
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Abhishek
>            Priority: Major
>
> PDDocument save(File) is used to create file in unix.
> But file is being created with link count as 0.
> This method is being called in a loop, to create > 10 files at a time. But we 
> notices that first or first two files are always being created with 0 link 
> count in unix file system.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to