Skip to main content
Participant
February 8, 2021
Question

Need Help to Choose between javaScript and Plugin Development Using Adobe Acrobat SDK

  • February 8, 2021
  • 1 reply
  • 571 views

Hi Community,

 

I am looking for what to choose between javaScript and Plugins development in Adobe Acrobat

 

I have two main requirements:

1. use web API and web services.

2. use content Stream.

 

I have gone through the Adobe Developer FAQ reference for this(https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/Acrobat_SDK_developer_faq.pdf). [on page number 18] [screenshot is given below]

 

found that my both requirements lie in different development technologies.

so how I can achieve this?

 

any lead is appreciated

Thanks

 

 

 

 

This topic has been closed for replies.

1 reply

Legend
February 8, 2021

Actually, you can use SOAP etc. from a Plug-in. However, there is no Acrobat API to do so. A plug-in can use other APIs and system calls, but needs to take great care because if the API waits, Acrobat is hung. You would need to set up service threads. Be sure to test with Protected Mode both off and on.

Saske5E87Author
Participant
February 10, 2021

Thanks for the reply, I have one more question to ask 

 

I want to save the file to a location using JavaScript for this I need the content stream.

 

if I proceed with JavaScript can I able to access the content stream as it saying "no" in the above table image but as I go through the documentation of JavaScript API reference I found that there is a "documentToStream" method, will it do that?

 

 

Legend
February 10, 2021

"I want to save the file to a location using JavaScript for this I need the content stream."

I believe you may be completely misunderstanding the term "content stream". This is something very specific in PDF internals, and not a copy of the bytes of the file.

 

In any case, if you could get the bytes of the file, Acrobat JavaScript couldn't write them to a file! But it has a save as function, subject to major limitations.