You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/07/10 16:58:00 UTC

[jira] [Commented] (PDFBOX-3863) Support duplex entry in ViewerPreferences

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

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

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

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