Skip to main content
Participating Frequently
Jun 30, 2023 6:44 PM UTC
Question

Issue with Opening Print Dialog in Adobe Acrobat Automation

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

Legend
Jul 7, 2023 10:41 AM UTC

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

Translate
Participating Frequently
Jul 8, 2023 3:08 PM UTC

what is the correct way to acheive this?

Translate
Legend
Jul 7, 2023 10:38 AM UTC

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?

Translate
Participating Frequently
Jul 8, 2023 3:26 PM UTC

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

Translate
JR Boulay
Community Expert
Community Expert
Jul 5, 2023 8:45 AM UTC

[MOVED TO THE ACROBAT SDK DISCUSSIONS]

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
Jul 5, 2023 8:15 AM UTC

What issue does you have?

Translate
Participating Frequently
Jul 6, 2023 1:18 PM UTC

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


Translate
Bernd Alheit
Community Expert
Community Expert
Jul 7, 2023 9:12 AM UTC

Looks like a issue with the attributes.

Translate