PDFOne .NET
Powerful all-in-one PDF library for .NET
Compatibility
VS 2005/2008/2010/2012/2013

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 .NET Developer Tools
XtremeDocumentStudio .NET

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

PDFOne .NET

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

Our Delphi/C++Builder developer tools
XtremeDocumentStudio Delphi

Multi-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms.

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.

Our Java developer tools
XtremeDocumentStudio (for Java)

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

PDFOne (for Java)

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

Our Platform-Agnostic Cloud and On-Premises APIs
StarDocs

Cloud-hosted and On-Premises REST-based document-processing and document-viewing APIs

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