Skip to main content
JR Boulay
Community Expert
Community Expert
August 29, 2023
Answered

Angular, PDF and Acrobat

  • August 29, 2023
  • 3 replies
  • 1573 views

Is it possible that an app (in angular 12) can pass parameters to a PDF file opened with Acrobat Reader?

We would like to make it pass the path of the saving directory and the name of the file.

Preferably without having to use an application script in Acrobat.

 

Thank you.

This topic has been closed for replies.
Correct answer Thom Parker

For Reader there are three methods (I know of) for passing data, that don't require special rights or something else. None of these use the IAC, which doesn't work with Reader.  

I don't know if any of these methods are compatible with Angular. 

 

1.   Submit to a server script. The script can be local. 

2.   Acquire local file data with "util.readFileIntoStream".

3.  Use the Acrobat open parameters to specify an FDF file, which was presumably just created by the app.  

 

#1 and #2 are driven from the Acrobat side. Only #3 is driven from the external app, which is what I think you intended. 

 

Hope this helps. 

 

3 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 31, 2023

Thank you again.

 

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
JR BoulayCommunity ExpertAuthor
Community Expert
August 30, 2023

Thank you Thom.

How can I use the Acrobat open parameters to specify an FDF file?

I don't know a setting like this one, where is it?

Acrobate du PDF, InDesigner et Photoshopographe
Thom Parker
Community Expert
Community Expert
August 30, 2023

The documentation is pretty old, but I believe still valid. Here's a link:

https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf

 

I would hope there was a newer online reference, but I haven't found it yet. 

 

Good Luck, 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
August 29, 2023

For Reader there are three methods (I know of) for passing data, that don't require special rights or something else. None of these use the IAC, which doesn't work with Reader.  

I don't know if any of these methods are compatible with Angular. 

 

1.   Submit to a server script. The script can be local. 

2.   Acquire local file data with "util.readFileIntoStream".

3.  Use the Acrobat open parameters to specify an FDF file, which was presumably just created by the app.  

 

#1 and #2 are driven from the Acrobat side. Only #3 is driven from the external app, which is what I think you intended. 

 

Hope this helps. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often