PDF fails to render (infinite loop!)
Posted: Tue Nov 17, 2015 4:40 pm
Hey, guys! Got a fun one!
We got a PDF from a customer that was failing to load inside of our software. It was getting stuck at PXCV_DrawPageToDC.
Unfortunately, the size of the pdf file is too large to upload here (6mb, 5.5mb zip'd). Is there an alternative method for sharing available? Dropbox? (pm?)
Ah, here we go - Dropbox :: https://www.dropbox.com/s/k0i6mzsk9zieo ... 2.pdf?dl=0
We've noticed that the PDF-XChange Viewer also has a little trouble with the file, but it appears it's only a problem at certain zoom-levels/viewports.
When the zoom level changes it looks like a new thread kicks in to render the PDF (you guys render PDFs so fast! FANTASTIC JOB!). Some zoom levels will only ever render the top-left portion of the file; after that part is done, it stops rendering... however, the thread is still working pretty hard. If I continue to change the viewport back and forth I'll eventually get the PDF-XChange Viewer to hit about 89% CPU... and that's when I close the application haha. My computer gets a little loud at that point.
I tried the PDF with Chrome's plugin as well as PDF-JS. Chrome renders it no problem at any zoom-level. PDF-JS has no such luck.
We got a PDF from a customer that was failing to load inside of our software. It was getting stuck at PXCV_DrawPageToDC.
Unfortunately, the size of the pdf file is too large to upload here (6mb, 5.5mb zip'd). Is there an alternative method for sharing available? Dropbox? (pm?)
Ah, here we go - Dropbox :: https://www.dropbox.com/s/k0i6mzsk9zieo ... 2.pdf?dl=0
We've noticed that the PDF-XChange Viewer also has a little trouble with the file, but it appears it's only a problem at certain zoom-levels/viewports.
When the zoom level changes it looks like a new thread kicks in to render the PDF (you guys render PDFs so fast! FANTASTIC JOB!). Some zoom levels will only ever render the top-left portion of the file; after that part is done, it stops rendering... however, the thread is still working pretty hard. If I continue to change the viewport back and forth I'll eventually get the PDF-XChange Viewer to hit about 89% CPU... and that's when I close the application haha. My computer gets a little loud at that point.
I tried the PDF with Chrome's plugin as well as PDF-JS. Chrome renders it no problem at any zoom-level. PDF-JS has no such luck.