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

Parameter list and details #1

Open
bryantmero opened this issue Jul 31, 2022 · 2 comments
Open

Parameter list and details #1

bryantmero opened this issue Jul 31, 2022 · 2 comments

Comments

@bryantmero
Copy link

Can you please list down the variable parameters for PDF rendering in this project?

@tanjinbd
Copy link
Owner

Can you please list down the variable parameters for PDF rendering in this project?

Hi Bryant,

Below are the configurable parameters I have kept: (Hope it serves your purpose)

ReaderConstants.h the following #define options are available:

READER_FLAT_UI - If TRUE, follows the Fuglyosity of Flat Fad
(flattens the UI).

READER_SHOW_SHADOWS - If TRUE, a shadow is shown around each page
and page thumbnail.

READER_ENABLE_THUMBS - If TRUE, a thumbs button is added to the main
toolbar enabling page thumbnail document navigation.

READER_DISABLE_RETINA - If TRUE, sets the CATiledLayer contentScale
to 1.0f. This effectively disables retina support and results in
non-retina device rendering speeds on retina display devices at
the loss of retina display quality.

READER_ENABLE_PREVIEW - If TRUE, a medium resolution page thumbnail
is displayed before the CATiledLayer starts to render the PDF page.

READER_DISABLE_IDLE - If TRUE, the iOS idle timer is disabled while
viewing a document (beware of battery drain).

READER_STANDALONE - If FALSE, a "Done" button is added to the toolbar
and the -dismissReaderViewController: delegate method is messaged when
it is tapped.

READER_BOOKMARKS - If TRUE, enables page bookmark support.

@bryantmero
Copy link
Author

Can you please list down the variable parameters for PDF rendering in this project?

Hi Bryant,

Below are the configurable parameters I have kept: (Hope it serves your purpose)

ReaderConstants.h the following #define options are available:

READER_FLAT_UI - If TRUE, follows the Fuglyosity of Flat Fad (flattens the UI).

READER_SHOW_SHADOWS - If TRUE, a shadow is shown around each page and page thumbnail.

READER_ENABLE_THUMBS - If TRUE, a thumbs button is added to the main toolbar enabling page thumbnail document navigation.

READER_DISABLE_RETINA - If TRUE, sets the CATiledLayer contentScale to 1.0f. This effectively disables retina support and results in non-retina device rendering speeds on retina display devices at the loss of retina display quality.

READER_ENABLE_PREVIEW - If TRUE, a medium resolution page thumbnail is displayed before the CATiledLayer starts to render the PDF page.

READER_DISABLE_IDLE - If TRUE, the iOS idle timer is disabled while viewing a document (beware of battery drain).

READER_STANDALONE - If FALSE, a "Done" button is added to the toolbar and the -dismissReaderViewController: delegate method is messaged when it is tapped.

READER_BOOKMARKS - If TRUE, enables page bookmark support.

Many Thanks Tanjinbd, these are really useful+++

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