<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>PDF Drucken speichern &#8211; LVBPrint Homepage</title>
	<atom:link href="https://www.lvbprint.de/en/tag/pdf-drucken-speichern/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lvbprint.de/en</link>
	<description>Software für Druckerlösungen</description>
	<lastbuilddate>Wed, 21 Aug 2024 13:29:16 +0000</lastbuilddate>
	<language>en-GB</language>
	<sy:updateperiod>
	hourly	</sy:updateperiod>
	<sy:updatefrequency>
	1	</sy:updatefrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.lvbprint.de/wp-content/uploads/2021/05/LVBCropTrans.png</url>
	<title>PDF Drucken speichern &#8211; LVBPrint Homepage</title>
	<link>https://www.lvbprint.de/en</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Example of automatic PDF generation when printing with the selection of the file name</title>
		<link>https://www.lvbprint.de/en/2024/08/20/pdf-generation-file-dialog/</link>
		
		<dc:creator><![CDATA[dieter]]></dc:creator>
		<pubdate>Tue, 20 Aug 2024 15:41:31 +0000</pubdate>
				<category><![CDATA[PrintMulti Examples]]></category>
		<category><![CDATA[PrintMulti]]></category>
		<category><![CDATA[Choose file name]]></category>
		<category><![CDATA[PDF Drucken speichern]]></category>
		<category><![CDATA[PDF print save]]></category>
		<guid ispermalink="false">https://www.lvbprint.de/?p=1537</guid>

					<description><![CDATA[Ermöglicht die Auswahl eines Dateinames für die PDF Datei]]></description>
										<content:encoded><![CDATA[<h2 class="wp-block-heading">Introduction</h2>



<p class="has-medium-font-size translation-block">Automatic PDF generation is easily possible in PrintMulti, as described <a href="https://www.lvbprint.de/en/2023/10/16/pdf-creation/" data-type="link" data-id="https://www.lvbprint.de/en/2023/10/16/pdf-creation/" target="_self">here</a>. One wish was for the user to be able to choose the name of the PDF to be generated when printing.</p>



<h2 class="wp-block-heading">Solution using ‘File:’ port</h2>



<p class="has-medium-font-size">PrintMulti itself does not offer the possibility to show a dialogue, but with a little trick it still works. </p>



<p class="has-medium-font-size">You simply select ‘FILE:’ as the port for the PrintMulti printer and the application or Windows displays a file save dialogue to select a prn file when printing.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="463" height="528" src="https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileE.png" alt="ChoosePrnFileD" class="wp-image-1538" title="Beispiel für eine automatische PDF Erzeugung beim Drucken mit der Auswahl des Dateinamens 1" srcset="https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileE.png 463w, https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileE-272x300.png 272w, https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileE-11x12.png 11w" sizes="(max-width: 463px) 100vw, 463px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="822" height="445" src="https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileDialogE.png" alt="ChoosePrnFileDialogD" class="wp-image-1541" title="Beispiel für eine automatische PDF Erzeugung beim Drucken mit der Auswahl des Dateinamens 2" srcset="https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileDialogE.png 669w, https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileDialogE-300x207.png 300w, https://www.lvbprint.de/wp-content/uploads/2024/08/ChoosePrnFileDialogE-18x12.png 18w" sizes="(max-width: 822px) 100vw, 822px" /></figure>



<p class="has-medium-font-size translation-block">The trick now is to let the user select a prn file whose name is available with the new macro ‘#O’ within PrintMulti. There, ‘.prn’ is then simply replaced by ‘.pdf’ and the PDF is created as in the other example.</p>



<p class="has-medium-font-size translation-block">The PrintMulti.ini could look like this if the PrintMulti printer is called <em>‘PrintMulti Colour File’</em>.</p>



<pre class="wp-block-preformatted has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size"><em>[MicrosoftPrintToPDF]</em><br>Printer=Microsoft Print To PDF<br>Save2File=$(#O;.prn;.pdf;replace)<br>Color=1<br>Execute=yes<br>ExecuteAsUser=true<br>ExecuteFlags=0x08000000<br>ExecuteTimeout=INF<br>ExecuteCmd=cmd /c del @"#O"<br><br><em>[TestPrinter]</em><br>Printer=Testprinter<br><br><em>[PrintMulti Color File]</em><br>Active=1<br>ActionCreatePDF=Print;MicrosoftPrintToPDF<br>ActionPrint=Print;TestPrinter<br>PrintSelf=0<br></pre>



<p></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Automatic PDF creation when printing</title>
		<link>https://www.lvbprint.de/en/2023/10/16/pdf-creation/</link>
		
		<dc:creator><![CDATA[dieter]]></dc:creator>
		<pubdate>Mon, 16 Oct 2023 18:43:25 +0000</pubdate>
				<category><![CDATA[PrintMulti]]></category>
		<category><![CDATA[PrintMulti Examples]]></category>
		<category><![CDATA[PDF Drucken speichern]]></category>
		<category><![CDATA[PDF print save]]></category>
		<guid ispermalink="false">https://www.lvbprint.de/?p=1444</guid>

					<description><![CDATA[Einleitung Eine häufige Anwendung von PrintMulti ist die automatische PDF Erstellung beim Drucken. Dieser Artikel zeigt, wie man PrintMulti so konfiguriert, dass dies auf einfache<div class="btn btn-light btn-arrow"><a href="https://www.lvbprint.de/en/2023/10/16/pdf-creation/" rel="nofollow" title="Read More">Read More</a></div>]]></description>
										<content:encoded><![CDATA[<h2 class="wp-block-heading">Introduction</h2>



<p class="has-medium-font-size">A common use of PrintMulti is automatic PDF creation during printing. This article shows how to configure PrintMulti so that this is easily possible. It assumes that the printer currently in use can be used.</p>



<p class="has-medium-font-size translation-block">The requirements for this are already described in the article "<a href="https://www.lvbprint.de/en/2023/09/28/printing-copies-2/" target="_self">Printing copies with PrintMulti</a>", so we will start here with the configuration of a suitable PDF printer.</p>



<p></p>



<h2 class="wp-block-heading">Selecting a PDF printer</h2>



<p class="has-medium-font-size translation-block">It is best to choose a printer driver that <em>"prints"</em> directly to a PDF file and not a two-stage driver such as the <em><a href="https://www.pdfforge. org/en/pdfcreator" rel="noopener" target="_self">"PDF Creator"</a></em> and many others that technically use a Postscript driver and later convert the resulting Postscript file to PDF, often with the help of <em><a href="https://www.ghostscript.com/" rel="noopener" target="_self">"Ghostscript"</a></em>. This also works with PrintMulti, as described in the manual in chapter 8, but is not trivial to configure.</p>



<p class="has-medium-font-size">In this article, we will therefore limit ourselves to PDF printers that generate a PDF directly without any detours.</p>



<p class="has-medium-font-size translation-block">The easiest way is to use the <em>"Microsoft Print To PDF"</em> printer supplied with Windows. You may have to activate it in the <em>"Windows Features"</em> so that it appears. This does its job without any problems, but does not have many setting options.</p>



<p class="has-medium-font-size translation-block">Another free PDF printer is included with <em><a href="https://www.pdfforge.org/de/pdfarchitect" rel="noopener" target="_self">"PDF Architect"</a></em>, even in the free version. This offers many setting options such as PDF/A, margins, font embedding, encryption and much more. With the help of saved printer settings and the <em>"Devmode1"</em> option, you can also use different settings. You can find examples of this in the article "<a href="https://www.lvbprint.de/en/2023/09/28/printing-copies/" target="_self">Printing copies with PrintMulti</a>" or in the manual.</p>



<p class="has-medium-font-size">There are certainly still a number of PDF printers that fulfil the requirements. If you already have one in use, simply try it out and see whether the PDF file you receive is actually PDF or Postscript.</p>



<h2 class="wp-block-heading">Simple example for PDF creation</h2>



<p class="has-medium-font-size translation-block">Install the <em>"Microsoft Print To PDF"</em> or the <em>"PDF Architect"</em> or both and copy the lower section into the PrintMulti.ini. You must replace the <em>"Samsung"</em> printer with a suitable printer as described in the other article.</p>



<pre class="wp-block-preformatted has-very-light-gray-to-cyan-bluish-gray-gradient-background has-background has-medium-font-size"><em>[MicrosoftPrintToPDF]</em>
Printer=Microsoft Print To PDF
Save2File=C:\PDFOutput\#(%Y-%m)T\#(%d)T\#J_#K_MS.pdf
Color=1

<em>[PDFArchitect9]</em>
Printer=PDF Architect 9
Save2File=C:\PDFOutput\#(%Y-%m)T\#(%d)T\#J_#K_Arch.pdf
Devmode1=c:\temp\pdfa.dev
Color=1

<em>[Samsung]</em>
Active=1
PrintSelf=1
ActionPDF9=Print;<em>PDFArchitect9</em>
ActionPDFMS=Print;<em>MicrosoftPrintToPDF</em></pre>



<p class="has-medium-font-size translation-block">If you now output a test page to the Samsung printer, a subdirectory with the year and month and another with the current day should be created in the directory <em>"C:\PDFOutput"</em> and the PDF files in it.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="262" height="147" src="https://www.lvbprint.de/wp-content/uploads/2023/10/Created-PDF.png" alt="PDF Erstellung" class="wp-image-1462" title="Automatische PDF Erstellung beim Drucken 3" srcset="https://www.lvbprint.de/wp-content/uploads/2023/10/Created-PDF.png 262w, https://www.lvbprint.de/wp-content/uploads/2023/10/Created-PDF-18x10.png 18w" sizes="(max-width: 262px) 100vw, 262px" /></figure>



<p class="has-medium-font-size translation-block">The <em>"Microsoft Print To PDF"</em> driver offers hardly any setting options, but the <em>"PDF Architect"</em> does. With the help of the <em>"Devmode2File"</em> tool, printer settings can be configured and saved in a file (here <em>"C:\temp\pdfa.dev"</em>). This enables, for example, PDF/A generation, encryption or whatever else the driver offers. The advantage of saved device modes is that it still works identically, even if someone tinkers with the printer settings. Apart from that, there are several places for saved device modes in the registry and you can never be sure which one is used, especially if different users and impersonations are in use, as is the case with a print processor.<br><br>"#K", "#J", "#T" are macros that contain defined values. In some cases, formatting is possible as with "#T". "#K" is the document name with the replacement of characters that are invalid for file names.</p>



<h2 class="wp-block-heading">Watermarks in the PDF with PrintMulti options</h2>



<p class="has-medium-font-size translation-block">A watermark or background image should now be added to the PDF. This can be done using the options built into PrintMulti, such as the output of text, images, rectangles and lines, or with the help of powerful tools such as <a href="https://pdftk.de.softonic.com/" rel="noopener" target="_self">"pdftk"</a>, which can be called using the ExecuteCmd options of PrintMulti.</p>



<p class="has-medium-font-size">PrintMulti outputs multiple texts with the following settings. This also works with the PDFArchitect printer with the corresponding settings.</p>



<pre class="wp-block-preformatted has-background has-medium-font-size" style="background:linear-gradient(90deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"><em>[WatermarkDocumentCenter]</em>
Active=1
Type=Text
Text=#D
Attrib=BI
Font=Arial
Foreground=0
Color=0xFF2600
X=$(#w;2;/)
; unit is twips. (1 inch = 1440 Twips; 1 inch = 2.54cm; 1cm=567 Twips)
Y=$(#h;567;-)
Height=5mm
Align=Center
VertAlign=Center

<em>[WatermarkDate]</em>
Type=Text
Text="#(%Y-%m-%d %H:%M)T"
Attrib=BI
Font=Courier New
Foreground=0
Color=0xE0E0E0
X=$(#w;2;/)
Y=$(#h;2;/)
Height=20mm
Align=Center
VertAlign=Center
dx=#w
dy=#h

<em>[WatermarkSideRight]</em>
Active=1
Type=Text
Text="#n/#Z "
Font=Courier New
Foreground=0
Color=0xFF2600
X=$(#w;#t;-)
Y=$(#h;567;-)
Height=5mm
Align=Right
VertAlign=Center

<em>[MicrosoftPrintToPDF]</em>
Printer=Microsoft Print To PDF
Save2File=C:\PDFOutput\#(%Y-%m)T\#(%d)T\#J_#K_MS.pdf
ObjectBottomRight=<em>WatermarkSideRight</em>
ObjectBottomCenter=<em>WatermarkDocumentCenter</em>
ObjectCenter=<em>WatermarkDate</em>
Transparent=1
Color=1

</pre>



<p class="has-medium-font-size">A printed extract from the PrintMulti manual would then look like this:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="591" height="837" src="https://www.lvbprint.de/wp-content/uploads/2023/11/PrintMultiObjects.png" alt="Beispiel PDF mit PrintMulti Objekten" class="wp-image-1482" title="Automatische PDF Erstellung beim Drucken 4" srcset="https://www.lvbprint.de/wp-content/uploads/2023/11/PrintMultiObjects.png 591w, https://www.lvbprint.de/wp-content/uploads/2023/11/PrintMultiObjects-212x300.png 212w, https://www.lvbprint.de/wp-content/uploads/2023/11/PrintMultiObjects-8x12.png 8w" sizes="auto, (max-width: 591px) 100vw, 591px" /></figure>



<p class="has-medium-font-size">The advantage of the PrintMulti method is that dynamic objects such as the date, the document name, the current page and lots of other information can be easily inserted.</p>



<h2 class="wp-block-heading">Using pdftk to modify the generated PDF</h2>



<p class="has-medium-font-size translation-block">There are command line programmes for editing PDF files. The best known is probably <a href="https://pdftk.de.softonic.com/" rel="noopener" target="_self">"pdftk"</a>. This can also be used to insert background images or watermarks. However, it does not seem to be able to change the current PDF, so you have to work with intermediate files.</p>



<p class="has-medium-font-size translation-block">A PrintMulti configuration with the use of <a href="https://pdftk.de.softonic.com/" rel="noopener" target="_self">"pdftk"</a> could look like this:</p>



<pre class="wp-block-preformatted has-background has-medium-font-size" style="background:linear-gradient(90deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)"><em>[ExecuteMove]</em>
Order=5
Execute=yes
ExecuteAsUser=true
ExecuteFlags=0x08000000
ExecuteTimeout=INF
ExecuteCmd=cmd /c move @"#G" %tempFile%

<em>[ExecutePDFtk]</em>
Order=5
Execute=yes
ExecuteAsUser=true
ExecuteFlags=0x08000000
ExecuteTimeout=INF
ExecuteCmd=c:\tools\pdftk %tempFile% background %background% output @"#G"

<em>[ExecuteDelete]</em>
Order=5
Execute=yes
ExecuteAsUser=true
ExecuteFlags=0x08000000
ExecuteTimeout=INF
ExecuteCmd=cmd /c del %tempFile%

<em>[pdftk]</em>
!tempFile=@"C:\PDFOutput\temp_#J.pdf"
!background=@"c:\temp\background.pdf"

Printer=PDF Architect 9
Save2File=C:\PDFOutput\#(%Y-%m)T\#(%d)T\#J_#K_9_pdftk.pdf
Devmode1=c:\temp\pdfa.dev
Color=1
ExecuteSection1=ExecuteMove
ExecuteSection2=Executepdftk
ExecuteSection3=ExecuteDelete
Transparent=1

<em>[Samsung]</em>
Active=1
PrintSelf=1
ActionPDFTK=Print;pdftk</pre>



<p class="has-medium-font-size translation-block">There are no variables in the strict sense in PrintMulti. The two assignments that begin with "!" are set as environment variables and are retained across section boundaries. As usual in Windows, they can be accessed with <em>"%...%"</em>. <br>The background was quickly created with WinWord and saved as a PDF in <em>"C:\temp\background.pdf"</em>.<br>You can see the result of a test page here:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="548" height="780" src="https://www.lvbprint.de/wp-content/uploads/2023/11/pdftkExample.png" alt="pdftk Beispiel" class="wp-image-1488" title="Automatische PDF Erstellung beim Drucken 5" srcset="https://www.lvbprint.de/wp-content/uploads/2023/11/pdftkExample.png 548w, https://www.lvbprint.de/wp-content/uploads/2023/11/pdftkExample-211x300.png 211w, https://www.lvbprint.de/wp-content/uploads/2023/11/pdftkExample-8x12.png 8w" sizes="auto, (max-width: 548px) 100vw, 548px" /></figure>



<p></p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>