pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Vacondio (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PDFBOX-1111) Add Duplex and PrintScaling to viewer preferences
Date Tue, 30 Aug 2011 13:15:37 GMT
Add Duplex and PrintScaling to viewer preferences

                 Key: PDFBOX-1111
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1111
             Project: PDFBox
          Issue Type: Improvement
          Components: PDModel
    Affects Versions: 1.6.0
         Environment: Patch created on version 1.7.0-SNAPSHOT, Revision 1163182.
            Reporter: Andrea Vacondio
            Priority: Minor
             Fix For: 1.7.0
         Attachments: duplex_and_printscaling.diff

org.apache.pdfbox.pdmodel.interactive.viewerpreferences.PDViewerPreferences currently doesn't
support viewer preferences Duplex and PrintScaling (defined in PDF Reference 1.7, Table 8.1).
I created a simple patch to the above mentioned class including the two preferences.
1. They require pdfversion 1.7 and 1.6 respectively. I don't know if this is the reason why
they are not currently available and I also don't know if there's a way in PDFBox to make
sure that the document version is consistent with the version required by the preferences.
2. Since the target jdk version is 1.5 I suggest to refactor the viewer preferences area to
use Enums instead of String constants (Ex. right now I think nothing prevents to set a READING_DIRECTION
constant as a NON_FULL_SCREEN_MODE) making the code more robust.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message