Skip to main content
Inspiring
September 17, 2023
Answered

Error "Acrobat may not display the page correctly" on opening PDF

  • September 17, 2023
  • 1 reply
  • 6125 views

Attached is an example from my Perl-based library (PDF::Builder) to create a number of splines using Bezier curves. It used to work fine in the free downloadable Acrobat Reader (which automatically updates), but now it blows up at the first curve. It still displays fine in other PDF Readers, such as the one in the Firefox browser. Any ideas? I use curves to create arcs and circles/ellipses in other examples, and they still work OK.

This topic has been closed for replies.
Correct answer Phil28073338r0c0

Okaaaaaay, I think I found the problem and have fixed it. PDF::Builder was not building a proper graphics dash (d) operation under some circumstances. FYI, this led to a d operation given a dash pattern array with a ridiculously large first element (actually an array address, not a valid "on" value!) and a 0 "off" value. Most PDF Readers, and apparently older AAR releases, either ignored this bogus value or clamped it to a reasonable integer value (resulting in effectively a solid line). Recent AAR releases went belly-up when they saw such a value.

 

My bad. My apologies for sending you off on a wild goose chase, but I just happened to produce a version of Bspline.pdf (during some other tests) that worked with AAR, while an older copy didn't work. I compared them in detail and found the bad d operations, which I have now fixed. I'll close this now.

1 reply

Meenakshi_Negi
Legend
September 18, 2023

Hi Phil28073338r0c0,

 

Thank you for reaching out.

 

We have checked the file that you shared. There seems to be some issue with the file, as we cannot open it. 

Could you please let us know how you are creating the PDF? Do you also experience issues with other files, or mainly with this one?

Share the Acrobat Reader and OS version on the machine. 

 

Thanks,

Meenakshi

Inspiring
September 20, 2023

It works fine for me just clicking the "preview" link in my post, as well as with the Firefox (et al.) PDF readers. Just Adobe Acrobat Reader fails on the first page second line third example (the first non-trivial one with a curve). I'm on Windows 10, and Reader is the free download Adobe Reader "Continuous Release | Version 2023.006.20320 | 64-bit". The PDF was created with PDF::Builder, a Perl library, using examples/Bspline.pl (grab a copy of the full install image from GitHub or CPAN.org to get the examples, or you should be able to d/l the single Bspline.pl file).

 

What are you using, and where does it fail to load? Yes, I experience problems with some other PDFs (I have 4 other tickets open... they may need to be moved to "Adobe Reader" forum).

Meenakshi_Negi
Legend
September 29, 2023

Hi Phil28073338r0c0,

 

Thank you for your patience, and sorry about the delayed response.

 

We have tried it on both Acrobat Pro and Acrobat Reader. Would you mind sharing the sample file again via the link?

You may share the file using the steps suggested under Share an anonymous or public link to file in the following help document: https://helpx.adobe.com/acrobat/using/sharing-pdfs.html

Please also share the screen recording of the workflow and where the issue occurs for a better understanding. 

 

Thanks,

Meenakshi