<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C# Print to PDF without PDF AddIn.SaveCopyAs in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705174#M133433</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the below code but does not even get to printing the pdf in Inventor 2017:&lt;/P&gt;
&lt;PRE&gt;Sub PrintTest()
    Dim dpm As DrawingPrintManager
    Set dpm = ThisApplication.ActiveDocument.PrintManager
    
    dpm.Printer = "PDFCreator"
    dpm.PaperSize = kPaperSizeCSheet
    dpm.PrintRange = kPrintAllSheets
    dpm.PrintToFile "c:\my.pdf"
End Sub
&lt;/PRE&gt;
&lt;P&gt;I keep getting this message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PdfCreator.png" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/295614i9DA4DED789ADAD7C/image-size/small?v=v2&amp;amp;px=200" role="button" title="PdfCreator.png" alt="PdfCreator.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I have to change some settings of the PdfCreator to get to at least producing a PDF? Or do I have to register it or something?&lt;/P&gt;
&lt;P&gt;I could print through the UI but PdfCreator showed many popup dialogs I had to wade through.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2016 13:45:30 GMT</pubDate>
    <dc:creator>adam.nagy</dc:creator>
    <dc:date>2016-11-23T13:45:30Z</dc:date>
    <item>
      <title>C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3711248#M133424</link>
      <description>&lt;P&gt;I would like to use Drag2PDF to create my PDF, and I want to automate the printing process. I want to print all sheets as a one PDF file. I have created a simple C# code, which prints to PDF, but I have one problem... When I submit the print a dialogue will appear (from the Drag2PDF) which asks for the file to be saved (location and name) How can I automate this?&lt;/P&gt;&lt;P&gt;I may not use pdfAddIn.SaveCopyAs, it makes my PDF not good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public void PrintDrawingToPDF()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;Inventor.DrawingPrintManager oPrintMgr = (Inventor.DrawingPrintManager)InventorOpen._invApp.ActiveDocument.PrintManager;&lt;/P&gt;&lt;P&gt;oPrintMgr.Printer = "Drag2PDF";&lt;/P&gt;&lt;P&gt;oPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeA3;&lt;/P&gt;&lt;P&gt;oPrintMgr.PrintRange = PrintRangeEnum.kPrintAllSheets;&lt;/P&gt;&lt;P&gt;oPrintMgr.SubmitPrint();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3711248#M133424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-26T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3732126#M133425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try DrawingPrintManager.PrintToFile() ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2012 16:54:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3732126#M133425</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2012-12-11T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3733232#M133426</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes I have tried DrawingPrintManager.PrintToFile(), but it gives not god result. It makes PDF file, which I cannot open afterward.&lt;/P&gt;&lt;P&gt;Lilia&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 07:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3733232#M133426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-12T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3733286#M133427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to avoid misuderstandings...&lt;/P&gt;
&lt;P&gt;So you tried this and you could not open the pdf that this created?&lt;/P&gt;
&lt;PRE&gt;public void PrintDrawingToPDF()
        {
Inventor.DrawingPrintManager oPrintMgr = (Inventor.DrawingPrintManager)InventorOpen._invApp.ActiveDocument.PrintManager;
oPrintMgr.Printer = "Drag2PDF";
oPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeA3;
oPrintMgr.PrintRange = PrintRangeEnum.kPrintAllSheets;
oPrintMgr.PrintToFile("c:\\mypdf.pdf");
}&lt;/PRE&gt;
&lt;P&gt;I'm asking because e.g. this worked fine for me in Inventor 2013 using VBA&lt;/P&gt;
&lt;PRE&gt;Sub PrintTest()
    Dim dpm As DrawingPrintManager
    Set dpm = ThisApplication.ActiveDocument.PrintManager
    
    dpm.Printer = "Microsoft XPS Document Writer"
    dpm.PaperSize = kPaperSizeCSheet
    dpm.PrintRange = kPrintAllSheets
    dpm.PrintToFile "c:\my.xps"
End Sub&lt;/PRE&gt;
&lt;P&gt;So if the exact same does not work with the Drag2PDF driver, then maybe there is some problem with that driver and you should contact its creator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2012 08:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/3733286#M133427</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2012-12-12T08:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6702104#M133428</link>
      <description>&lt;P&gt;And now years later in inventor 2016/2017 I encounter exactly the same problem. The generated pdf can't be opened. Is there a solution for this problem. In other words, if I dont want to use the embedded PDF print option but want to use my own pdf printer like cutepdf or pdfcreator, how can I make a readable pdf file ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 11:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6702104#M133428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-22T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6703255#M133429</link>
      <description>&lt;P&gt;Hi Remy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Does the problem only occur when using the API?&lt;/P&gt;
&lt;P&gt;2) Can you try to use the same printer programmatically from another application, like Word?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could be that the printer's UI works fine, but its programmatic access does something funny. As far as I know Inventor does not do anything printer&amp;nbsp;specific, just using Windows calls to do the print. So if one printer works programmatically and one does not, then it seems to be pointing at a printer driver issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:05:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6703255#M133429</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-22T18:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704490#M133430</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;I am working in inventor 2016/2017 with C#.&lt;/P&gt;&lt;P&gt;I used several pdf printers. Manually it works but through the API I get PDF's that can't be opened.,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the same pdf printer (pdfcreator) with Revit 2014/2015/2016/2017 in the API and it never gave any problems and I get pdfs that can be openend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It really seems an inventor problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 07:33:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704490#M133430</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T07:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704931#M133431</link>
      <description>&lt;P&gt;Can you provide a link to the exact PdfCreator you are using? - just to make sure I'm testing with the correct one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 11:53:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704931#M133431</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-23T11:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704934#M133432</link>
      <description>&lt;P&gt;Yes, I can.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.pdfforge.org/pdfcreator/download" target="_blank"&gt;http://www.pdfforge.org/pdfcreator/download&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 11:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6704934#M133432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705174#M133433</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the below code but does not even get to printing the pdf in Inventor 2017:&lt;/P&gt;
&lt;PRE&gt;Sub PrintTest()
    Dim dpm As DrawingPrintManager
    Set dpm = ThisApplication.ActiveDocument.PrintManager
    
    dpm.Printer = "PDFCreator"
    dpm.PaperSize = kPaperSizeCSheet
    dpm.PrintRange = kPrintAllSheets
    dpm.PrintToFile "c:\my.pdf"
End Sub
&lt;/PRE&gt;
&lt;P&gt;I keep getting this message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PdfCreator.png" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/295614i9DA4DED789ADAD7C/image-size/small?v=v2&amp;amp;px=200" role="button" title="PdfCreator.png" alt="PdfCreator.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I have to change some settings of the PdfCreator to get to at least producing a PDF? Or do I have to register it or something?&lt;/P&gt;
&lt;P&gt;I could print through the UI but PdfCreator showed many popup dialogs I had to wade through.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 13:45:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705174#M133433</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-23T13:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705226#M133434</link>
      <description>&lt;P&gt;I never saw this message. I did some settings in order to automate the printing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a word document (in dutch) whoch highlights the settings I did. (marked in red, so I think the language won't be a problem).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:00:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705226#M133434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705265#M133435</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;I'm still getting the same message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you give my code a try and see what happens?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:13:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705265#M133435</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-23T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705298#M133436</link>
      <description>&lt;P&gt;I use simular code in c# and the pdf gets made (without error messages), only it can't be opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:24:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705298#M133436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T14:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705301#M133437</link>
      <description>&lt;P&gt;The problem was that I tried to save to "C:\" (which is a protected location on Win10) if I change it to "C:\temp" then it's working - and produces a&amp;nbsp;corrupt PDF.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705301#M133437</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-23T14:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705317#M133438</link>
      <description>&lt;P&gt;Okay, and now for the million dollar question, Why is it corrupt ???&lt;/P&gt;&lt;P&gt;What is Inventors grudge against PDF &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705317#M133438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705337#M133439</link>
      <description>&lt;P&gt;I've logged this in our system as #163748&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot tell when exactly it will be investigated (and dealt with, hopefully) because of other priorities, but at least now it can be tracked.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:40:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705337#M133439</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-11-23T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705356#M133440</link>
      <description>&lt;P&gt;Thanks Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am anxious to know if it can be fixded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another odd thing I encountered that although I tell inventor to print black/white, 3D shaded objects are always printed in colour. So the black/white option only seems to apply to '2D" line work, dimension ect. This is even the case when printing manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 14:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/6705356#M133440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-23T14:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/10755272#M133441</link>
      <description>&lt;P&gt;Was this ever fixed...? I am having the exact same problem. Windows PDF creator is outputting files correctly but when i use a third party pdf creator the file is always corrupt... This wouldn't be an issue except that Widows PDF does not print to A1 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 13:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/10755272#M133441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-13T13:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: C# Print to PDF without PDF AddIn.SaveCopyAs</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/10755313#M133442</link>
      <description>&lt;P&gt;This is the feedback that was provided for the issue:&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;PrintToFile&lt;/STRONG&gt;&lt;SPAN&gt;, use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SubmitPrint.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Using &lt;STRONG&gt;PrintToFile&lt;/STRONG&gt; for &lt;STRONG&gt;PDF Creator&lt;/STRONG&gt; creates a file that is actually the &lt;STRONG&gt;postscript&lt;/STRONG&gt; instructions. It is not valid &lt;STRONG&gt;PDF&lt;/STRONG&gt; format.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/42430236/print-to-pdf-printer-creates-corrupted-file" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/42430236/print-to-pdf-printer-creates-corrupted-file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing the line&lt;/P&gt;
&lt;P&gt;dpm.PrintToFile "c:\temp\my.pdf"&lt;/P&gt;
&lt;P&gt;to&lt;BR /&gt;dpm.SubmitPrint&lt;/P&gt;
&lt;P&gt;was able to create a valid &lt;STRONG&gt;PDF&lt;/STRONG&gt; file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To avoid the&amp;nbsp;&lt;STRONG&gt;PDFCreator Save dialog&lt;/STRONG&gt; and create the file directly, From &lt;STRONG&gt;PDF Creator&lt;/STRONG&gt;, select "&lt;STRONG&gt;Profile Settings&lt;/STRONG&gt;". For &lt;STRONG&gt;Auto-Save&lt;/STRONG&gt;, check "&lt;STRONG&gt;Enable automatic saving&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 15:06:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/c-print-to-pdf-without-pdf-addin-savecopyas/m-p/10755313#M133442</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2021-11-13T15:06:03Z</dc:date>
    </item>
  </channel>
</rss>

