Skip to main content
Known Participant
Jan 13, 2021 7:25 PM UTC
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
Jan 20, 2021 6:42 PM UTC
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
Jan 13, 2021 8:33 PM UTC

Can you elaborate on your question?

Translate
tangyunAuthor
Known Participant
Jan 14, 2021 7:11 AM UTC

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
Jan 14, 2021 7:13 AM UTC

 sorry, the API call should be previewFile()

Translate