Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Export to PDF without empty pages (Read 2443 times)
Patrik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Aug 22nd, 2012
Export to PDF without empty pages
Nov 6th, 2012 at 3:00pm
Print Post  
Hi!

We're using NetDiagram 3.1.1 for .NET 3.5 for PDF-generation (MindFusion.Diagramming.Export.PdfExporter on MindFusion.Diagramming.Diagram()).

Is there a way to remove empty/blank pages so they do not end up in the resulting PDF?

Please let me know if you need more info!

BR
/Patrik
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to PDF without empty pages
Reply #1 - Nov 6th, 2012 at 3:43pm
Print Post  
Hi,

You could call Diagram.ResizeToFitItems before exporting, and restore Bounds to its previous value afterwards.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Patrik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 7
Joined: Aug 22nd, 2012
Re: Export to PDF without empty pages
Reply #2 - Nov 7th, 2012 at 11:39am
Print Post  
Thanks for quick answer!

We are already doing something like this. The problem is that if we have a workarea 2x2 A4-pages and a diagram that streches over the two in the top and down to the last in the bottom row (1, 2 and 4), we will get 4 pages in PDF where the third is empty.

[1][2]
[3][4]

Can we get rid of this empty page so it does not appear in the PDF?

/Patrik
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Export to PDF without empty pages
Reply #3 - Nov 8th, 2012 at 3:40pm
Print Post  
Hi,

You can't skip such pages. You might try using a third party PDF library to remove them after the diagram PDF is generated.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint