Resized Document will no longer open in Mozilla Browser

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,


Thanks for your inquiry. Please note we follow the Adobe Acrobat as standard, because Adobe is in the center of all which are connected with PDF. As all PDF readers/tools, available in market, have their own “representation”. Please change your default reader to Adobe Acrobat Reader in Firefox. Hopefully it will help you to resolve the issue.

  • 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

Please feel free to contact us for any further assistance.

Best Regards,

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,


Thanks for sharing your findings. We have logged a ticket PDFNEWNET-36511 for investigating the issue. We will keep you updated about the issue resolution progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,