Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for duplex viewer preference #744

Closed
mcshaz opened this issue Jan 10, 2021 · 1 comment
Closed

Add support for duplex viewer preference #744

mcshaz opened this issue Jan 10, 2021 · 1 comment

Comments

@mcshaz
Copy link
Contributor

mcshaz commented Jan 10, 2021

Similar to the issue for dompdf at dompdf/dompdf#2046 - would it be possible to add the ability to create and set values for a viewer preferences entry into the document's catalog, as described at https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=370 (page 362 of PDF spec 1.7 under 12.2 Viewer Preferences).

mcshaz added a commit to mcshaz/pdf-lib that referenced this issue Jan 11, 2021
mcshaz added a commit to mcshaz/pdf-lib that referenced this issue Jan 12, 2021
Hopding pushed a commit that referenced this issue Jan 24, 2021
* more ViewerPreferences

address issue #744

* PDFHexString ViewerPreferences

* Update ViewerPreferences.ts

* neaten ViewerPreferences

* type assertIsOneOf values

* clearer documentation of viewerPreferences

* Update tsconfig target

* README with viewer pref

* tests for viewer preferences

* more ViewerPreferences

address issue #744

* revert to ES5 target

* fix tsconfig es case

ensure it does not show up as a change in the diff

* address Hopding coments 1

* minor viewerpref doc changes

* doc viewerPref with pageMode

* set pagemode

* test existing viewerPrefs in doc

* document viewerPref enums

* lint viewerPreferences

* comment linting

* comments in 0 printpage index
@Hopding
Copy link
Owner

Hopding commented Jan 27, 2021

Support for this added in v1.16.0

@Hopding Hopding closed this as completed Jan 27, 2021
Hopding pushed a commit that referenced this issue Aug 30, 2021
* more ViewerPreferences

address issue #744

* PDFHexString ViewerPreferences

* Update ViewerPreferences.ts

* neaten ViewerPreferences

* type assertIsOneOf values

* clearer documentation of viewerPreferences

* Update tsconfig target

* README with viewer pref

* tests for viewer preferences

* more ViewerPreferences

address issue #744

* revert to ES5 target

* fix tsconfig es case

ensure it does not show up as a change in the diff

* address Hopding coments 1

* minor viewerpref doc changes

* doc viewerPref with pageMode

* set pagemode

* test existing viewerPrefs in doc

* document viewerPref enums

* lint viewerPreferences

* comment linting

* comments in 0 printpage index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants