PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Remove blank pages
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3425
Page 1 of 1

Author:  Nestor Gomez [ Sun Aug 14, 2016 7:38 pm ]
Post subject:  Remove blank pages

Hello!

Is there a way to remove blank pages from a PDF document?

Somehow I'm getting an additional extra blank page appended at the end of a document every time the penultimate page's contents get closer to the footer section but not as close to generate a pagebreak (a pagebreak that leads to a blank page).

To be more precise,
how could I know when a page is blank (incluiding just the footer or header contents)?

Any help?

Author:  TH-Soft [ Sun Aug 14, 2016 8:53 pm ]
Post subject:  Re: Remove blank pages

Hi!
Nestor Gomez wrote:
To be more precise,
how could I know when a page is blank (incluiding just the footer or header contents)?
Are you sure the page is empty?
Maybe it contains invisible items (e.g. empty paragraphs).

If you think there is a bug in MigraDoc then please provide a complete solution that allows to replicate the problem.
viewtopic.php?f=2&t=832

Or provide an MDDDL file for a document that leads to an empty page:
http://pdfsharp.net/wiki/MigraDocDDL.ashx

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/