Skip to main content
Participant
March 1, 2022
Question

getMetaData request failed; pdf file specific error

  • March 1, 2022
  • 2 replies
  • 1740 views

Hi All, 

 

I have a strange error, almost all PDF files open succesfully using the embed PDF API. 

 

However, some files throw an error (the An Error encoutered popup)

 

Downloading (right-click) the file in the window works, so the viewer receives the PDF file. 

If I inspect the console errors, there is one error:

 

[Error] Unhandled Promise Rejection: Error: getMetadata request failed
promiseEmptyOnRejected (bootstrap.js:2:775697)
promiseReactionJob
 
The PDF opens just fine on my mac, PC or phone. The only difference seems to be the file generating the error has no author info in the metadata.
 
Could this be a bug in the API? 
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    September 12, 2022

    Was this able to be solved? I am currently facin the same issue for specific files

    Participant
    September 13, 2022

    Not really solved. Adobe were succesful in reproducing it with my file(s), however no real cause as found. The PDF seems to be not completely compliant. Acrobat can read the file(s) and display them, the online viewer is more strict.

     

    A workaround is to open the files, linearize them and save them. This optimizes them for viewing online which is a plus, but does modify the file and involves an extra step (and cost for a library or online service that does this).

     

    I have not implemented such a step as downloading and viewing offline is a more or less useable workaround for us. 

     

    I still hope adobe updates the online viewer so it can handle these kinds of files or at least give more meaningful feedback so we can fix it at the source, as now we don't know what the offending part of the pdf's is. 

     

     

    Participating Frequently
    September 13, 2022

    Thanks for the information 🙂

    Raymond Camden
    Community Manager
    Community Manager
    March 1, 2022

    Can you share a sample PDF here?

     

    Likes

     
    Participant
    March 2, 2022

    I've tried to redact the file (as it contains confidential information) - however the saved redacted files do not give an error. 

     

    I will try to get a blank file from the datasource without any confidential info.

    Raymond Camden
    Community Manager
    Community Manager
    March 2, 2022

    Understood. You could also email to me directly (jedimaster@adobe.com) if that's an option.