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

ASF subversion and git services commented on PDFBOX-3863:
---------------------------------------------------------

Commit 1801497 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1801497 ]

PDFBOX-3863: support duplex entry in ViewerPreferences

> Support duplex entry in ViewerPreferences
> -----------------------------------------
>
>                 Key: PDFBOX-3863
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3863
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.6
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.7, 3.0.0
>
>
> The attached SO question inspired me to support the duplex entry in 
> ViewerPreferences, even if it isn't what the person asked for. Adobe Reader 
> supports it, i.e. their print dialog changes depending on the entry.
> To test this feature, create a PDF with 2 pages and use this code:
> {code}
> PDDocumentCatalog documentCatalog = document.getDocumentCatalog();
> PDViewerPreferences viewerPreferences = new PDViewerPreferences(new 
> COSDictionary());
> viewerPreferences.setDuplex(PDViewerPreferences.DUPLEX.DuplexFlipShortEdge);
> documentCatalog.setViewerPreferences(viewerPreferences);
> {code}
> This will show the calender duplex mode in the print dialog.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to