How to add more paper sizes to Virtual PDF Printer and set margins to Zero to all supported papers?

The "PDF Virtual Printer SDK Based on Postscript Printer Driver for Developer Royalty Free" is a powerful tool for developers, allowing them to easily convert documents into PDF format. This virtual PDF printer, known as the "VeryPDF PDFPrinter," provides a range of functionalities that can be customized to meet specific needs. While it offers a robust set of features out of the box, there may be instances where you want to add more paper sizes or adjust the margins to zero for all papers. In this article, we will guide you through the process of achieving just that.

To begin customizing the paper sizes and margins of the VeryPDF PDFPrinter, you first need to download and install it from the official website:

https://veryutils.com/pdf-virtual-printer

Once you have installed the virtual printer, you will find it listed as "VeryPDF PDFPrinter" in your Printer & Fax folder. By default, this printer comes with a set of predefined paper sizes and margins, but you have the flexibility to expand on these options according to your requirements.

Please by following steps to add more paper sizes and remove margins from papers,

1. Delete following compiled file (cache file) first,

del "%WINDIR%\system32\spool\drivers\x64\3\MSGENCOL.BPD"

2. Please open following file in Notepad++ or notepad application,

notepad.exe "%WINDIR%\system32\spool\drivers\x64\3\MSGENCOL.PPD"

3. Replace following OLD text lines with new text lines,

Remove OLD text lines,
-----------------------
*% These areas will not be accurate for all color printers; may be 10-20 points off for some.
*DefaultImageableArea: Letter
*ImageableArea Letter: "21 54 582 774"
*ImageableArea Legal: "21 54 582 990"
*ImageableArea Tabloid: "21 54 762 1206"
*ImageableArea A3: "21 54 812 1172"
*ImageableArea A4: "21 54 565 824"

*% These provide the physical dimensions of the paper (by keyword)
*DefaultPaperDimension: Letter
*PaperDimension Letter: "612 792"
*PaperDimension Legal: "612 1008"
*PaperDimension Tabloid: "792 1224"
*PaperDimension A3: "842 1190"
*PaperDimension A4: "595 842"
-----------------------

Add NEW text lines,
-----------------------
*% These areas will not be accurate for all color printers; may be 10-20 points off for some.
*DefaultImageableArea: Letter
*ImageableArea Letter: "0.0 0.0 612.0 792.0"
*ImageableArea Legal: "0.0 0.0 612.0 1008.0"
*ImageableArea Executive: "0.0 0.0 522.0 756.0"
*ImageableArea Ledger: "0.0 0.0 1224.0 792.0"
*ImageableArea Tabloid/11 x 17: "0.0 0.0 792.0 1224.0"
*ImageableArea Screen: "0.0 0.0 468.0 373.0"
*ImageableArea A3: "0.0 0.0 842.0 1191.0"
*ImageableArea A4: "0.0 0.0 595.0 842.0"
*ImageableArea A5: "0.0 0.0 420.0 595.0"
*ImageableArea A6: "0.0 0.0 297.0 420.0"
*ImageableArea A0/ISO A0: "0.0 0.0 2384.0 3370.0"
*ImageableArea A1/ISO A1: "0.0 0.0 1684.0 2384.0"
*ImageableArea A2/ISO A2: "0.0 0.0 1191.0 1684.0"
*ImageableArea B1/B1 (JIS): "0.0 0.0 2064.0 2920.0"
*ImageableArea B2/B2 (JIS): "0.0 0.0 1460.0 2064.0"
*ImageableArea B3/B3 (JIS): "0.0 0.0 1032.0 1460.0"
*ImageableArea B4/B4 (JIS)[257 x 364 mm]: "0.0 0.0 729.0 1032.0"
*ImageableArea B5/B5 (JIS)[182 x 257 mm]: "0.0 0.0 516.0 729.0"
*ImageableArea Env10/No. 10 Envelope[4.125 x 9.5 in]: "0.0 0.0 297.0 684.0"
*ImageableArea EnvC5/C5 Envelope[162 x 229 mm]: "0.0 0.0 459.0 649.0"
*ImageableArea EnvDL/DL Envelope[110 x 220 mm]: "0.0 0.0 312.0 624.0"
*ImageableArea EnvMonarch/Monarch Envelope[3.87 x 7.5 in]: "0.0 0.0 279.0 540.0"
*ImageableArea ARCHA/ARCH A: "0.0 0.0 648.0 864.0"
*ImageableArea ARCHB/ARCH B: "0.0 0.0 864.0 1296.0"
*ImageableArea ARCHC/ARCH C: "0.0 0.0 1296.0 1728.0"
*ImageableArea ARCHD/ARCH D: "0.0 0.0 1728.0 2592.0"
*ImageableArea ARCHE/ARCH E: "0.0 0.0 2592.0 3456.0"
*ImageableArea ARCHE1/ARCH E1: "0.0 0.0 2160.0 3024.0"
*ImageableArea FanFoldGermanLegal/Folio[8.5 x 13 in]: "0.0 0.0 612.0 936.0"
*ImageableArea Statement/Statement[5.5 x 8.5 in]: "0.0 0.0 396.0 612.0"
*ImageableArea Note/Note[7.5 x 10 in]: "0.0 0.0 540.0 720.0"
*ImageableArea ISO-B1/ISO-B1: "0.0 0.0 2004.0 2836.0"
*ImageableArea P8.5x10/8.5 x 10 in: "0.0 0.0 612 720"
*ImageableArea P22x36/22 x 36 in: "0.0 0.0 1584 2592"
*ImageableArea P24x48/24 x 48 in: "0.0 0.0 1728 3456"
*ImageableArea P24x60/24 x 60 in: "0.0 0.0 1728 4320"
*ImageableArea P24x72/24 x 72 in: "0.0 0.0 1728 5184"
*ImageableArea P24x84/24 x 84 in: "0.0 0.0 1728 6048"
*ImageableArea P24x96/24 x 96 in: "0.0 0.0 1728 6912"
*ImageableArea P24x108/24 x 108 in: "0.0 0.0 1728 7776"
*ImageableArea P36x42/36 x 42 in: "0.0 0.0 2592 3024"
*ImageableArea P36x60/36 x 60 in: "0.0 0.0 2592 4320"
*ImageableArea P36x72/36 x 72 in: "0.0 0.0 2592 5184"
*ImageableArea P36x84/36 x 84 in: "0.0 0.0 2592 6048"
*ImageableArea P36x96/36 x 96 in: "0.0 0.0 2592 6912"
*ImageableArea P36x108/36 x 108 in: "0.0 0.0 2592 7776"

*% These provide the physical dimensions of the paper (by keyword)
*DefaultPaperDimension: Letter
*PaperDimension Letter: "612 792"
*PaperDimension Legal: "612 1008"
*PaperDimension Executive: "522 756"
*PaperDimension Ledger: "1224 792"
*PaperDimension Tabloid/11 x 17: "792 1224"
*PaperDimension Screen: "468 373"
*PaperDimension A3: "842 1191"
*PaperDimension A4: "595 842"
*PaperDimension A5: "420 595"
*PaperDimension A6: "297 420"
*PaperDimension A0/ISO A0: "2384 3370"
*PaperDimension A1/ISO A1: "1684 2384"
*PaperDimension A2/ISO A2: "1191 1684"
*PaperDimension B1/B1 (JIS): "2064 2920"
*PaperDimension B2/B2 (JIS): "1460 2064"
*PaperDimension B3/B3 (JIS): "1032 1460"
*PaperDimension B4/B4 (JIS)[257 x 364 mm]: "729 1032"
*PaperDimension B5/B5 (JIS)[182 x 257 mm]: "516 729"
*PaperDimension Env10/No. 10 Envelope[4.125 x 9.5 in]: "297 684"
*PaperDimension EnvC5/C5 Envelope[162 x 229 mm]: "459 649"
*PaperDimension EnvDL/DL Envelope[110 x 220 mm]: "312 624"
*PaperDimension EnvMonarch/Monarch Envelope[3.87 x 7.5 in]: "279 540"
*PaperDimension ARCHA/ARCH A: "648 864"
*PaperDimension ARCHB/ARCH B: "864 1296"
*PaperDimension ARCHC/ARCH C: "1296 1728"
*PaperDimension ARCHD/ARCH D: "1728 2592"
*PaperDimension ARCHE/ARCH E: "2592 3456"
*PaperDimension ARCHE1/ARCH E1: "2160 3024"
*PaperDimension FanFoldGermanLegal/Folio[8.5 x 13 in]: "612 936"
*PaperDimension Statement/Statement[5.5 x 8.5 in]: "396 612"
*PaperDimension Note/Note[7.5 x 10 in]: "540 720"
*PaperDimension ISO-B1/ISO-B1: "2004 2836"
*PaperDimension P8.5x10/8.5 x 10 in: "612 720"
*PaperDimension P22x36/22 x 36 in: "1584 2592"
*PaperDimension P24x48/24 x 48 in: "1728 3456"
*PaperDimension P24x60/24 x 60 in: "1728 4320"
*PaperDimension P24x72/24 x 72 in: "1728 5184"
*PaperDimension P24x84/24 x 84 in: "1728 6048"
*PaperDimension P24x96/24 x 96 in: "1728 6912"
*PaperDimension P24x108/24 x 108 in: "1728 7776"
*PaperDimension P36x42/36 x 42 in: "2592 3024"
*PaperDimension P36x60/36 x 60 in: "2592 4320"
*PaperDimension P36x72/36 x 72 in: "2592 5184"
*PaperDimension P36x84/36 x 84 in: "2592 6048"
*PaperDimension P36x96/36 x 96 in: "2592 6912"
*PaperDimension P36x108/36 x 108 in: "2592 7776"
-----------------------

4. Save it, the new paper sizes will be supported immediately.

image

5. If you encounter any problem, please feel free to contact us at https://veryutils.com/contact , we are glad to assist you asap.

✅ Want to buy this product from VeryUtils?

If you are interested in purchasing this software or developing a customized software based on it, please do not hesitate to contact us.

https://veryutils.com/contact

We look forward to the opportunity of working with you and providing developer assistance if required.

No votes yet.
Please wait...

Related Posts

Leave a Reply

Your email address will not be published.