Export to Pdf current view
Marcellus Zebra
7/25/2013 8:10 AM
|
---|
Hi,
is possible to export to pdf the current view of cad file.
tipically the user zoom and pan the view, so click export button and we want to obtain a pdf with the current view fragment of model.
Thank's
marcello.
|
rammi
7/25/2013 1:18 PM
|
---|
At the moment I see no perfectly easy way to achieve this.
The only way which comes to my mind is to create a DxfLayout/DxfViewport combination which is constructed from the current view shown in the window. Then print this layout/viewport to PDF.
- Rammi
|
Marcellus Zebra
9/10/2013 11:23 AM
|
---|
Hi Rammi,
thank's very mutch.
is impossible for you to create a little example of this process?
I tryed to use your ideas without success...
Thank's, marc.
|
Wout
11/26/2013 5:12 PM
|
---|
Hi Marc,
For unexperienced users the matrix transformations can be a little bit intimidating but you don't need to understand all the details to use it. The DWG DXF Sharp Viewer also does not contain export to PDF using a clip rectangle. In the topic that Rammi answered using a layout/viewport, that is one option. You could also use the PDF clipping, but the PDF would be bigger than necessary ofcourse, especially if you are clipping most of the drawing away. For clipping use PdfPageConfiguration.ClipRectangle in the PdfExporter.DrawPage. In general you'll need to do the following:
C# Code: / |
guain
9/23/2014 10:57 PM
|
---|
:p
Thanks. It works!
|
guain
9/24/2014 3:14 AM
|
---|
How can I make PaperSize.A4 in landscape orientation in PDF ?
Thanks in advance.
|
Wout
9/24/2014 3:46 PM
|
---|
Try using
Visual Basic Code: PaperKind. |