Profile Picture

Diagram PDF Export

Posted By Dieter Schulten 11 Years Ago
Author
Message
Dieter Schulten
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 10, Visits: 2
Hello, i am looking for the correct way to export a diagram.

As far is i know, there is a "NPdfExporter" which can be used to export a diagram to PDF.

NPdfExporter pdfExporter = new NPdfExporter(documment);
pdfExporter.CompressContents = true;
pdfExporter.Resolution = 300;
pdfExporter.PageSize = new NSizeF(documment.Width, documment.Height);
pdfExporter.PageColumns = 1;
pdfExporter.PageRows = 1;
pdfExporter.ZoomPercent = 100;
pdfExporter.Layout = PagedLayout.ZoomTo;

If i am using this kind of code, the exported PDF has more pages, the the diagram i see in the NDrawingView.
Maybe i don't understand the relationship between the "NDrawingDocument" showing in the "NDrawingView"
and the epxorted PDF.

What i want to do is pretty simple. If want the user to click a button in my application.
After the user has clicked the button a "A4" NDrawingDocument should be created.
This NDrawingDocument should have one single page in the NDrawingView.

If the user clicks on another button, the "A4 NDrawingDocument" should be saved as
a "A4 PDF Document"

In the attached Screenshot you can see, that the "PDF Export" has 16 Pages (I DON'T KNOW WHY).

In the other Screenshot you can see, that the "Exported PDF Page Size" is "74,1 x 104,8 mm" (I DON'T KNOW WHY).

Hopefully you can give me further information.

Kind Regards, Dieter

PS: Do you already have a Release Date for the "Nevron Diagram 2013.1"


Attachments
Screenshot.png (183 views, 27.00 KB)
Screenshot2.png (179 views, 15.00 KB)



Similar Topics


Reading This Topic