PDFOne .NET
Powerful all-in-one PDF library for .NET
Compatibility
VS 2008 VS 2005 CLR 2.0

How To Offset Hard Margins Of A Printer When Printing A PDF

Learn about the new OffsetHardMargins property introduced in Version 2.1.2 of PDFOne .NET.
By V. Subhash

When a physical printer has hard margins, it will not print on the areas covered by those margins. It will print only in the remaining area.

When you print using these printers, PDFOne's printer component will print after offsetting these hard margins on all four edges of the paper. This may cause the print content to be shrunk on all sides or some content along the right and bottom margins to be clipped.

To avoid this problem, you need to set PDFPrinter.OffsetHardMargins property to true. This will make the printer component to ignore the hard margins of the physical printer. The printer component prints as if the hard margins did not exist and the whole page in the physical printer was available for printing. As the physical printer cannot really print on the hard margins, PDF page content over the margins gets clipped or do not get printed.

This is not a problem as PDF pages usually incorporate white space along all four edges. (Users tend to treat the white space as margins but PDF internally does not have any concept of margins.)

When the OffsetHardMargins property is set to true, no viewable content will be lost so long as the:

---o0O0o---

Our Developer Tools
eDocEngine VCL

A Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools.

PDFtoolkit VCL

A Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents.

XtremePDFConverter VCL

A Delphi/C++Builder component to intelligently convert PDF to user-friendly Word RTF documents.

PDFOne .NET

A .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications.

XtremeDocumentStudio .NET

Multi-format document-processing component suite for .NET developers

PDFOne (for Java™)

A Java™ PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java™ applications.

XtremeFontEngine (for Java)

Java font engine to render glyphs from Type 1, Type 2 (CFF), and TrueType fonts

Our Office Productivity Applications
Free PDF Reader

A free, fast, and portable application for viewing, printing and converting PDF documents.

Privacy | Legal | Feedback | Newsletter | Resellers © 2002-2013 Gnostice Information Technologies Private Limited. All rights reserved.

This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows XP users are advised to use Microsoft ClearType Tuning for optimal experience. Also, please use the latest version of a standards-compliant browser such as Firefox, Opera, or Dragon (Chromium).