Post Atb0RHzYkFWqJrRc1I by jonhendry@iosdev.space
 (DIR) More posts by jonhendry@iosdev.space
 (DIR) Post #Atb00vPa4jr4l62o5I by foone@digipres.club
       2025-04-29T21:32:23Z
       
       0 likes, 0 repeats
       
       I'm not sure how PDFs can be slow.I have a PDF here which is 700+ pages, but when I jump to a different part of the document, it shows me the spinning beachball for like 10 seconds, then it loads (and nearby pages are fast).Some weird compression, maybe? or just no index so it's having to do a lot of manual seeking on a big file (actually the file is only 24mb, which is AMAZING for a book this long)
       
 (DIR) Post #Atb0RHzYkFWqJrRc1I by jonhendry@iosdev.space
       2025-04-29T21:37:05Z
       
       0 likes, 0 repeats
       
       @foone Is that page a big bitmap image?
       
 (DIR) Post #Atb0UqUKwcrsB1XIXI by 6a62@raru.re
       2025-04-29T21:37:44Z
       
       0 likes, 0 repeats
       
       @foone I regularly have to use a piece of documentation that comes as a single 100mb / 14,000 page long PDFit's a good stress test for PDF readers, Acrobat really does not enjoy it for instance
       
 (DIR) Post #Atb0kPJNkqUWWUpfw8 by musevg@hostux.social
       2025-04-29T21:40:32Z
       
       0 likes, 0 repeats
       
       @foone Maybe @Ange has some insights for you?
       
 (DIR) Post #Atb1GVKEvlbIRQXSYS by tekhedd@byteheaven.net
       2025-04-29T21:46:19Z
       
       0 likes, 0 repeats
       
       @foone I'd say "maybe it is rendering each page as it goes, because the spec makes it impossible to just scan forward to an offset" but that would be incredibly dumb. Right? My Cynicism Sense is tingling...
       
 (DIR) Post #Atb2OBY6RVYfNQFWvg by antijingoist@masto.hackers.town
       2025-04-29T21:59:01Z
       
       0 likes, 0 repeats
       
       @foone  take one apart sometime, and then have some self care after because you’ll maybe need it 😬
       
 (DIR) Post #Atb2ROaoP2y2hS30HQ by oneiros@ruhr.social
       2025-04-29T21:59:31Z
       
       0 likes, 0 repeats
       
       @fooneThere's an index of all objects, and a tree of pages, and pages are independent, so... Are the pages just large images?
       
 (DIR) Post #Atb4klr8KoiAGB33K4 by WillTootMaybe@mstdn.social
       2025-04-29T22:25:27Z
       
       0 likes, 0 repeats
       
       @foone i have to know... is this the Intel x86 manual?
       
 (DIR) Post #AtdJNvg5XRjNgqMtAe by thorsummoner@ibite.lol
       2025-05-01T00:18:46Z
       
       0 likes, 0 repeats
       
       @foone you know that pdf is arbitrary code execution right? pretty sure the PDF can while(true){} if I really wants too... fun fact, macos's UI is drawn with the same shader language as PDF uses. isn't that amazing.
       
 (DIR) Post #Atdogxk1BjAoAdlJEO by Ange@mastodon.social
       2025-05-01T06:09:37Z
       
       0 likes, 0 repeats
       
       @foone I’m curious.You can’t share the file, I assume ?
       
 (DIR) Post #Atdp7SomGgDq5BcoFs by foone@digipres.club
       2025-05-01T06:14:26Z
       
       0 likes, 0 repeats
       
       @Ange I can!https://bitsavers.org/pdf/borland/turbo_c/Turbo_C++_Library_Reference_1990.pdf
       
 (DIR) Post #AtdqKQ089VTB45fzcG by 0xabad1dea@infosec.exchange
       2025-05-01T06:27:40Z
       
       0 likes, 0 repeats
       
       @foone some PDF readers seem a lot more willing to just unpack the whole thing into memory at once than others. I’ve had PDFs only a few megabytes long fail to advance to the next page because the backing fileshare had an intermittent outage and I don’t know why it thinks I want to avoid a few megabytes ram usage over total unavailability due to random network blips
       
 (DIR) Post #AteDWtgfu4fRYWUmPY by jleedev@mastodon.sdf.org
       2025-05-01T10:47:53Z
       
       0 likes, 0 repeats
       
       @foone @Ange yep, those are /JBIG2Decodeconverting them to /CCITTFaxDecode would be an interesting exercise to see the tradeoffalso, i might be hallucinating but i believe i have seen the firefox viewer show the invisible text while waiting for images to become ready?