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)
Reply
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,

do you have any information on this topic.
It is important to us, to have s pdf export.

In your documentation i can not find any information about the pdf export.
Maybe the information is there, but i can't find it.

What are the relationships between a PDF Page (A4) and a NDrawingDocument?

It would be nice, if you could provide further information on the pdf export.

I need the functionality to enable the user to create a new document.
The user needs to selects the page format, like A4.
After this, the user can create his diagram.
The application will show a A4 document wihtin the application.
The PDF export needs to look excaclty like the document in the screen.

Thanks for your help.

Dieter
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