Issue in CAD to PDF Conversion

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
yallavishnuvardhanreddy
Posts: 10
Joined: 17 Oct 2019, 11:52

Issue in CAD to PDF Conversion

Post by yallavishnuvardhanreddy » 21 Nov 2019, 16:06

I am Converting the CAD File to PDF, It's converted into PDF but the PDF is not getting the whole data as like CAD File. The file is coming as cropped leftside.

Can anyone help me on this.

PFA for Reference.

Thanks & Regards,
Vishnu Vardhan Reddy Yalla.
Attachments
Reference
Reference
CADtoPDF_Sample.jpg (72.73 KiB) Viewed 8445 times

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Re: Issue in CAD to PDF Conversion

Post by support » 22 Nov 2019, 09:15

Hi

Could you please share your original CAD file and specify the method you're using to convert it to PDF?

Andrei
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

yallavishnuvardhanreddy
Posts: 10
Joined: 17 Oct 2019, 11:52

Re: Issue in CAD to PDF Conversion

Post by yallavishnuvardhanreddy » 22 Nov 2019, 10:00

Hi Andrei,

Left side is Cropped and that data is not coming in PDF.

Please find the Code below for PDF conversion :-

CADToPDF ConvertPdf = new CADToPDF(cadimage);
ConvertPdf.Settings.IsShowLineWeight = true;
ConvertPdf.Settings.LayoutsExportMode = CADImport.Export.LayoutsExportOption.Current;
ConvertPdf.Settings.XScale = 30;
ConvertPdf.SaveToFile(fName);

Thanks & Regards,
Vishnu.

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Re: Issue in CAD to PDF Conversion

Post by support » 22 Nov 2019, 10:09

Thank you very much

Could your also please provide us the original CAD file for testing? You can send it support@cadsofttools.com as an attachment

Andrei
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

yallavishnuvardhanreddy
Posts: 10
Joined: 17 Oct 2019, 11:52

Re: Issue in CAD to PDF Conversion

Post by yallavishnuvardhanreddy » 26 Nov 2019, 13:39

Hi Andrei,

Please find the attachment
Attachments
dxf.rar
(166.51 KiB) Downloaded 742 times

yallavishnuvardhanreddy
Posts: 10
Joined: 17 Oct 2019, 11:52

Re: Issue in CAD to PDF Conversion

Post by yallavishnuvardhanreddy » 26 Nov 2019, 13:47

Hi Andrei,

Please find the attachment
dxf2.rar
(171.14 KiB) Downloaded 759 times
dxf2.rar
(171.14 KiB) Downloaded 759 times

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Re: Issue in CAD to PDF Conversion

Post by support » 27 Nov 2019, 20:36

Hello,

We have tested the code you posted with CAD .NET 14.1.0.40930 and your DXF files, but couldn't reproduce the issue. Could you please specify your CAD .NET version?

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

yallavishnuvardhanreddy
Posts: 10
Joined: 17 Oct 2019, 11:52

Re: Issue in CAD to PDF Conversion

Post by yallavishnuvardhanreddy » 28 Nov 2019, 07:52

Hi

If we convert cad file directly there is no issue but when we add other entities on the left side it was cropping and converting into PDF . here it is attachment for your reference
Attachments
testpdf.jpg
testpdf.jpg (65.29 KiB) Viewed 8376 times

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Re: Issue in CAD to PDF Conversion

Post by support » 28 Nov 2019, 10:32

yallavishnuvardhanreddy wrote:
28 Nov 2019, 07:52
Hi

If we convert cad file directly there is no issue but when we add other entities on the left side it was cropping and converting into PDF . here it is attachment for your reference
Please post the code which you use to add other entities on the left side, we will check it.

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

rachelgomez
Posts: 2
Joined: 08 Mar 2023, 12:08

Re: Issue in CAD to PDF Conversion

Post by rachelgomez » 13 Mar 2023, 07:53

If you're already working in AutoCAD and need to create a PDF, you can export the file:
Go to Output > Plot.
Choose a PDF preset.
Click OK.
Name and save your file.

Regards,
Rachel Gomez

Post Reply