Skip to main content
Participating Frequently
June 30, 2023
Question

Issue with Opening Print Dialog in Adobe Acrobat Automation

  • June 30, 2023
  • 4 replies
  • 1439 views

encountering a problem while automating PDF form filling and attempting to open the print dialog in Adobe Acrobat using Python. Despite ensuring the correct installation of Adobe Acrobat and validating the code, we encountered difficulties accessing the PrintWithDialog method.

 

However, unable to resolve the issue with the PrintWithDialog method and encountered an AttributeError when attempting to access it.

 

 

This topic has been closed for replies.

4 replies

Legend
July 7, 2023

Also, if you are calling GetActiveDoc and PrintWithDialog, that is completely wrong. You are using methods from two entirely different APIs. 

Participating Frequently
July 8, 2023

what is the correct way to acheive this?

Legend
July 7, 2023

Which flavour of Acrobat is installed?

Acrobat Reader, Acrobat Standard, Acrobat Pro? 

Acrobat DC, 2020, 2017, 2015, ...?

Do other API methods work ok?

Does it work if used from VB?

Participating Frequently
July 8, 2023

Adobe acrobat pro, was exploring it's feature now switched to reader temporarlyt,latest version, would it matter?

JR Boulay
Community Expert
Community Expert
July 5, 2023

[MOVED TO THE ACROBAT SDK DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
July 5, 2023

What issue does you have?

Participating Frequently
July 6, 2023

Using python to make a script that fills fields and opens adobe acrobat + opens print dialog, well it does everything except opening print dialog, with error:

Traceback (most recent call last): File "C:\Python39\lib\tkinter\__init__.py", line 1892, in __call__ return self.func(*args) File "C:\Users\user\Desktop\e.py", line 63, in fill_pdf acrobat_avdoc.PrintWithDialog() File "C:\Python39\lib\site-packages\win32com\client\dynamic.py", line 638, in __getattr__ raise AttributeError("%s.%s" % (self._username_, attr)) AttributeError: GetActiveDoc.PrintWithDialog

is PrintWithDialog the correct with to ask adobe to prompt print dialog instead of auto print page


Bernd Alheit
Community Expert
Community Expert
July 7, 2023

Looks like a issue with the attributes.