I’m doing a simple 50% resize on a pdf document:
fileEditor.ResizeContentsPct(memstream, memstream2, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, 50, 50)
After I save the document it will no longer open in the default Mozilla pdf viewer.
If I do not resize the contents and save it, the document opens just fine.
This happens on most pdf documents I try.
Occurs on any size by pixel or percent.
This is a problem because Firefox now uses this viewer as its default. (PDF.js)
A debug version of PDF.js is available from github. I can provide a full build if necessary.
I have included the original and the modified file.
Hi Michael,
- At the top of the Firefox window, click on the Firefox button and then select Options
- Select the Applications panel
- Find Portable Document Format (PDF) in the list and click on it to select it
- Click on the drop-down arrow in the Action column for the above entry and select Use Acrobat Reader (in Firefox)
- Restart the browser
Looks like there is a circular reference in the resources causing blendmode to go into infinite loop. Internal resources in the document are being named with the same id. Not sure if this is a compliance problem, but it may cause other non-adobe readers to blow out. The original document did not have any circular references.
XObject (dict) [id: 41, gen: 0]
Fm0 (stream) [id: 115, gen: 0]
Resources (dict) [id: 116, gen: 0]
XObject (dict) [id: 41, gen: 0]
Fm0 (stream) [id: 115, gen: 0]
R37 (stream) [id: 37, gen: 0]
ExtGState (dict) [id: 40, gen: 0]
ProcSet (array)
Font (dict) [id: 42, gen: 0]
BBox (array)
Subtype = /Form
Length = 142
FormType = 1
Type = /XObject
Filter = /FlateDecode
Name = /Fm0
download
R37 (stream) [id: 37, gen: 0]
Hi Michael,