valerybokov commented on pull request #107:
URL: https://github.com/apache/pdfbox/pull/107#issuecomment-817756433


   I created a PDF document with 2 pages. Additionally, I added an instance of 
PDViewerPreferences. After splitting the document, I got their 
PDViewerPreferences and compared their COSObjects. The links are the same. So, 
if I want to change the PDViewerPreferences for one of the created documents, I 
need to clone the PDViewerPreferences and set them to the document. No cloning 
method found from COSDictionary.
   
   The Method PDDocumentCatalog.getViewerPreferences sends a link to 
PDViewerPreferences constructor instead of clonned object link. I should say, 
sometimes link is better than clone. For example, if you save document to a 
drive (PDFSplit.call).
   
[pdviewerprefs.txt](https://github.com/apache/pdfbox/files/6296536/pdviewerprefs.txt)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to