Diagram PDF Export


Author
Message
Dieter Schulten
Dieter Schulten
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
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 (207 views, 27.00 KB)
Screenshot2.png (205 views, 15.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search