Exported PDF impossible to open
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I wrote a VBA code to export drawings to PDFs using "drawing print manager".
In the code, I call the method "drawingPrintManager.PrintToFile(FilePath)" to save automatically the exported PDF in an specific folder and with an specific name, since it's the only way I found to manage it.
However, when I try to open the created PDF, it appears a window where it's said that the file is damaged and it's impossible to open it.
I've read some posts about this topic in this forum, where it's said that this issue happens because "PrintToFile" method creates a Postscript file instead of a PDF file.
Is it possible to solve this issue or to convert this Postscript file into a PDF with VBA code?
I realized that this issue doesn't happen, when I select manually the folder and the name of the PDF file. But I'd like to avoid this step, and doing it automatically instead.
I've also read that using translator Add-In could be a solution, but it doesn't allow me to print in Grayscale or selecting paper size as options.
Thanks in advance!