Skip to main content
Known Participant
January 13, 2021
Answered

How to get PDF buffer when loading the pdf with a URL

as title

 

thanks in advance. 

This topic is closed to new replies. Start a new post to keep the conversation going.
Joel Geraci
Joel GeraciCorrect answer
Community Expert
January 20, 2021
i need to parse the actual content for the real title... lots of time the metadata gives wrong one.

Get Outlook for iOS

I think I understand but let me check. The title in the metadata isn't the text that would be recognized by a human as the title of the document if they were reading it on screen. If that's the case, take a look at our PDF Tools / Extract API. 

 

You can read about it here https://medium.com/adobetech/extract-content-structure-from-pdfs-using-ai-powered-adobe-pdf-extract-api-1593ad6b79b5

 

10 replies

Joel Geraci
Community Expert
Community Expert
January 13, 2021

Can you elaborate on your question?

Translate
tangyunAuthor
Known Participant
January 14, 2021

Hi thanks for your reply.

 

basically i used the previewPDF function in window.AdobeDC.View class to render a pdf from a URL. 

 

and after it loads the PDF automatically, i want to get a raw arrayBuffer content of the loaded PDF so that i could do some processing on it. 

 

So i wonder if there is an API for requesting the raw pdf buffer.

 

I know that annotationManager.removeAnnotationsFromPDF returns the PDF buffer, but to use this function, i have to set the "IncludePDFAnnotations" to true, which I don't want, cos the additional save button will appear...

Translate
tangyunAuthor
Known Participant
January 14, 2021

 sorry, the API call should be previewFile()

Translate