Copy link to clipboard
Copied
Hello, I'm attempting to use the PDF embed API to view files in an Angular application. Most of the files render completely fine, but mainly redacted files seem to not render properly. I’ve added both an original and a redacted version of a file that renders incorrectly. If you open the redacted version in for example the Adobe PDF Embed API Demo (https://documentcloud.adobe.com/view-sdk-demo/index.html) you’ll see that it doesn’t render and when you open the dev-tools, the console is full of errors. The stack-trace can be seen here:
Has anybody else experienced this or is this a known limitation of the embed api?
Copy link to clipboard
Copied
These PDF files are seriously broken. Most PDF viewers will compensate by "repairing" the files before displaying but we don't have that technology in Embed API. Too often developer tools including early versions of iText, the producer of these PDf files, cut corners knowing that Acrobat can "fix' them. Embed API is far more strict so it won't display broken files.