<?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: export PDF without layers in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13649483#M116870</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...the idea I mentioned in message #9 is currently by 128 votes.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Just keep pushing it and maybe something will move in the PDF Translator area...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;A title="PDF Translator flatten layers functionality" href="https://forums.autodesk.com/t5/inventor-ideas/pdf-translator-flatten-layers-functionality/idi-p/7994618" target="_blank" rel="noopener"&gt;&lt;U&gt;PDF Translator flatten layers functionality&lt;/U&gt;&lt;/A&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2025 10:19:23 GMT</pubDate>
    <dc:creator>freesbee</dc:creator>
    <dc:date>2025-05-26T10:19:23Z</dc:date>
    <item>
      <title>export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5719762#M116855</link>
      <description>&lt;P&gt;I have an iLogic function that will export the drawing as a pdf and I can control certain options on the export as well. I was wondering is there a way to control whether or not the exported pdf contains the layer information or not?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 21:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5719762#M116855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-14T21:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5721537#M116856</link>
      <description>Printing to PDF will not show layers. The only other way I have come across is to have PDF software to flatten the document.</description>
      <pubDate>Wed, 15 Jul 2015 19:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5721537#M116856</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-07-15T19:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5721542#M116857</link>
      <description>&lt;P&gt;I got to looking at the code I am using and I am technically doing a save as and am keeping it vertor format as when it is rasterized as a print it has errors or other sorts with alignments and colors and such.... So it does come out with layers.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5721542#M116857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-15T19:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5736639#M116858</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do not find an option that can enable / disable layers. While I am not clear on what you described in message 3. It sounds you hit a problem where you think it is caused from layer? Could you elaborate the problem? probably we can try to sort how to solve the problem, instead of trying to find option to disable layers.</description>
      <pubDate>Thu, 23 Jul 2015 00:57:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/5736639#M116858</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2015-07-23T00:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6298100#M116859</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the user who raised the initial post is similar to myself, removing layer information is nothing to do with encountering problems, it is much simpler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Security!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many firms, including who I work for wish a PDF file to represent the drawing content as it would appear on paper only. Hence we do not wish layer information to be made public as part of the electronic file. This leaves us with two options, the first is to scan a paper drawing which has quality issues, the second is to use an aftermarket PDF solution such as adobe which has limitations as the task cannot be automated via iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Easy solution is to provide functionality within the PDF export options and API to choose whether you want to embed layer information or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Kev.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 13:46:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6298100#M116859</guid>
      <dc:creator>kevin_hay</dc:creator>
      <dc:date>2016-04-28T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6313909#M116860</link>
      <description>Hi Kevin,&lt;BR /&gt;&lt;BR /&gt;Thank you for the comments. I can log a wish.</description>
      <pubDate>Sun, 08 May 2016 05:34:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6313909#M116860</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2016-05-08T05:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6406998#M116861</link>
      <description>just fyi the wish ID # TFS-140221</description>
      <pubDate>Mon, 27 Jun 2016 20:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6406998#M116861</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2016-06-27T20:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6407066#M116862</link>
      <description>Thanks!</description>
      <pubDate>Mon, 27 Jun 2016 21:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/6407066#M116862</guid>
      <dc:creator>kevin_hay</dc:creator>
      <dc:date>2016-06-27T21:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9203924#M116863</link>
      <description>&lt;P&gt;...there is also a corresponding idea to vote (and maybe it makes sense to vote also the other related ideas on PDF translator improvements):&lt;/P&gt;&lt;P&gt;&lt;A title="PDF Translator flatten layers functionality" href="https://forums.autodesk.com/t5/inventor-ideas/pdf-translator-flatten-layers-functionality/idi-p/7994618" target="_blank" rel="noopener"&gt;PDF Translator flatten layers functionality&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;@xiaodong_liang&lt;/a&gt;maybe you could pair the wish ID # TFS-140221 to the idea with almost 50 votes?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 08:15:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9203924#M116863</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2019-12-16T08:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205594#M116864</link>
      <description>&lt;P&gt;Just a thought. you could try to use a pdf-printer instead of the build in pdf export function. maybe layers do not get sent to the printer. (I did not test this but maybe it works)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 20:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205594#M116864</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2019-12-16T20:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205655#M116865</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Just a thought. you could try to use a pdf-printer instead of the build in pdf export function. maybe layers do not get sent to the printer. (I did not test this but maybe it works)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it works (I did test it of course a few years ago), but how do you realize it on 1000+ drawings?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 21:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205655#M116865</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2019-12-16T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205776#M116866</link>
      <description>&lt;P&gt;For batch exporting i have not a complete answer. But i would try to create &lt;SPAN class="ILfuVd"&gt;&lt;SPAN class="e24Kjd"&gt;&lt;STRONG&gt;PostScript-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;files&lt;/P&gt;&lt;PRE&gt;Dim doc As DrawingDocument = ThisApplication.ActiveDocument
doc.PrintManager.PrintToFile("c:\temp\testfile.ps")&lt;/PRE&gt;&lt;P&gt;and then convert the &lt;SPAN class="ILfuVd"&gt;&lt;SPAN class="e24Kjd"&gt;&lt;STRONG&gt;PostScript-&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;files to pdf.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 22:41:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/9205776#M116866</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2019-12-16T22:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/10061862#M116867</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Just a thought. you could try to use a pdf-printer instead of the build in pdf export function. maybe layers do not get sent to the printer. (I did not test this but maybe it works)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I realize this is an old(er) thread, but an additional limitation of Print to PDF (at least the built in one that comes with Windows) is paper size. I exclusively deal with ANSI D-size sheets, and currently the Print to PDF only handles up to ANSI B-Size sheets (11x17, or "Tabloid").&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 22:45:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/10061862#M116867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-05T22:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/11410419#M116868</link>
      <description>Unfortunately since 2021 the document display name is not sent do printer anymore, so automation is terribly tricky as all prints ends in files with meaningless names.</description>
      <pubDate>Fri, 09 Sep 2022 05:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/11410419#M116868</guid>
      <dc:creator>tomasz.sztejka</dc:creator>
      <dc:date>2022-09-09T05:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13649109#M116869</link>
      <description>&lt;P&gt;Following.&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 06:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13649109#M116869</guid>
      <dc:creator>nithin9JMXC</dc:creator>
      <dc:date>2025-05-26T06:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13649483#M116870</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...the idea I mentioned in message #9 is currently by 128 votes.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Just keep pushing it and maybe something will move in the PDF Translator area...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;A title="PDF Translator flatten layers functionality" href="https://forums.autodesk.com/t5/inventor-ideas/pdf-translator-flatten-layers-functionality/idi-p/7994618" target="_blank" rel="noopener"&gt;&lt;U&gt;PDF Translator flatten layers functionality&lt;/U&gt;&lt;/A&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 10:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13649483#M116870</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2025-05-26T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13650446#M116871</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/885382"&gt;@freesbee&lt;/a&gt;. But, sorry, I was looking for a built-in option in Inventor if available. Earlier I was doing it in the way you suggested, but the problem with that is, it's time consuming (need to rename, find the right folder directory to save in etc.) Not easy when its lot of files.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 00:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13650446#M116871</guid>
      <dc:creator>nithin9JMXC</dc:creator>
      <dc:date>2025-05-27T00:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13650802#M116872</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...and the idea is exactly about "changing the only built in option" of inventor in order to achieve what you want, becasue the current built in option (called PDF Translator) cannot do that.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I suspect your only viable possibility is to vote and promote those ideas, so that soon or later Autodesk will react. That is why I wrote the idea some years ago...&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 06:04:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13650802#M116872</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2025-05-27T06:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: export PDF without layers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13663363#M175287</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/885382"&gt;@freesbee&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11713657"&gt;@nithin9JMXC&lt;/a&gt;&amp;nbsp;There are open source third party libraries that can be used to remove layers from pdfs programatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg for my company, I have rules that export the pdf with temp_#.pdf using the pdf translator, then use this snippet to flatten it using iText (Inventor 2025+) and then delete the temporary file.&lt;/P&gt;&lt;P&gt;It can easily be baked into multi file pdf exporter rules, programs, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though the only way to truly make the pdf uneditable is to rasterize it, but then you loose the vector quality and the file size can get larger. Even PDF signing, there are a few ways to get around it if one's goal is to get to hidden graphics underneath a mask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'Requires iText7+, Inventor 2025+
'iText is AGPL3!
Imports iText.Kernel.Pdf


#If False Then 'Hides VB.Net Compiler Error in Visual Studio, but still works with iLogic
AddReference "****\itext\itext.io.dll"
AddReference "****\itext\itext.kernel.dll"
AddReference "System.Drawing.dll"
AddReference "PresentationFramework.dll"
#End If


''''code to export drawing to pdf

'partial flatten pdf. this removes easy access layer control, but it still allows object control because it does not rasterize!
        Dim failture As Boolean = false
		Dim pdoc As PdfDocument = Nothing
		Try
			pdoc = New PdfDocument(New PdfReader(oDataMedium.FileName), New PdfWriter(newpdfname))
			Dim cat = pdoc.GetCatalog()
			Dim dict = cat.GetPdfObject().GetAsDictionary(PdfName.OCProperties)
			If dict.ContainsKey(PdfName.OCGs) Then
				dict.Remove(PdfName.OCGs)
			End If
		Catch
			failure = True
			MsgBox("Failed to faltten/rename PDF, do you have the original open?")
		Finally
			If pdoc IsNot Nothing Then
				pdoc.Close()
			End If
		End Try

		If Not failure Then
			Try
				System.IO.File.Delete(oDataMedium.FileName)
			Catch
			End Try
		End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 11:22:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/export-pdf-without-layers/m-p/13663363#M175287</guid>
      <dc:creator>g.georgiades</dc:creator>
      <dc:date>2025-06-03T11:22:38Z</dc:date>
    </item>
  </channel>
</rss>

