-
Notifications
You must be signed in to change notification settings - Fork 311
Multi-PDF document streaming #1316
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
base: pdfbox3
Are you sure you want to change the base?
Conversation
Consolidate parameters into new PdfParams object
public void bringToPresent() throws IOException { | ||
if (presentDocument == null) { | ||
log.trace("Loading document for use"); | ||
//TODO - include various processing handled for non streamed documents ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting to add to the PR's TODO listing.
return realWrapper.print(graphics, pageFormat, pageIndex); | ||
} | ||
catch(IOException ioe) { | ||
//todo - how to handle?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting to add to the PR's TODO listing.
if (docWidth <= 0) { docWidth = page.getImageableWidth(); } | ||
if (docHeight <= 0) { docHeight = page.getImageableHeight(); } | ||
bundle.flagForStreaming(true); | ||
//fixme - book bundle short-circuits based on total pages, how to bypass ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting to add to the PR's TODO listing.
lastStarted = pageIndex; | ||
} | ||
|
||
//fixme - this setup results in too many blank pages after a no_such_page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting to add to the PR's TODO listing.
WIP