Replies: 1 comment
-
Are you sure this is the correct solution for speeding up loading? For the Adobe Reader part, we have a comment inside the code which states that your approach will not work there, as you have discovered yourself as well: Lines 476 to 479 in 27edc06 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to group pages together within a PDFs internal structure, thus allowing my frontend to load pages from larger PDFs faster. When I talk about grouping together in this context, I mean the kind of grouping you'd find if inspecting a PDFs internal structure via preflight. For example, given a 25 page document with groups of 5 pages, you'd see 5 nodes in the internal structure under /Kids.
I was hoping there was a more direct way to group pages as I need, but I didn't see anything in the documentation that could do this. I've also searched Issues and Discussion and I didn't find anything seemingly related to this problem I'm facing. If I missed a post relating to this, I apologize as it's likely that the appropriate terminology for what I am attempting is unfamiliar to me.
Since I couldn't find any previous posts for this, I resorted to adjusting the internal structure of the PDF directly to group the pages. When I open the PDF in Adobe Acrobat, all I get are blank pages (following the example above, I only see 25 blank pages). However, the file size is as expected, using preflight to inspect the internal structure shows that the pages are grouped as expected, and when I open the file with a python script to retrieve content from the document, I am able to do so without issue. Sadly, I really need the content to be viewable via Adobe Acrobat for frontend. Any assistance is appreciated. My current code is below.
Beta Was this translation helpful? Give feedback.
All reactions