Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
What issue does you have?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Looks like a issue with the attributes.
Copy link to clipboard
Copied
[MOVED TO THE ACROBAT SDK DISCUSSIONS]
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Adobe acrobat pro, was exploring it's feature now switched to reader temporarlyt,latest version, would it matter?
Copy link to clipboard
Copied
Also, if you are calling GetActiveDoc and PrintWithDialog, that is completely wrong. You are using methods from two entirely different APIs.
Copy link to clipboard
Copied
what is the correct way to acheive this?