Incorrect DWG to PDF export
Mikhael
3/27/2019 10:24 AM
|
---|
Hello,
It seems, that I cannot export DWG file worksheets to PDF correctly. The drawing on output PDF file page looks very small.
Please look the source DWG file, output PDF and screenshot image file on:
http://download.print-driver.com/ex/mb/cadlib/files.rar
Please let me know if you need any additional info to reproduce and fix this issue.
Mikhael
|
Wout
3/28/2019 3:49 PM
|
---|
Not sure if I fixed the problem what is causing your issue, since I can't see what you mean exactly. But there was a problem with MTEXT layout, which is now improved. Please download the latest version from Your resources in your user profile if your license is still valid.
- Wout
|
Mikhael
3/28/2019 5:00 PM
|
---|
Thank you, Wout!
|
Wout
3/28/2019 5:26 PM
|
---|
Ok, I see the scaling problem too now, overlooked the included PDF.
You have to change the following for exporting paper space layouts to PDF:
C# Code: double scaleFactor = layout. C# Code: using System; |
Mikhael
3/29/2019 10:52 AM
|
---|
Hello Wout,
I tested new CADLib binaries and your C# code and see, that I'm unable to export part of layouts of few DWG files I have in my collection.
As example, if I try convert "C21000PL1.dwg" to PDF, I see, that "PL1" layout exported as empty page in PDF file.
The same result I see if I try convert "20180118_Chinchilla_Final Design_based 38769_DET_Comb.dwg" to PDF. Only "Model" worksheet is exported correctly. Both layouts this file contains looks like empty pages in output PDF file.
Please follow link below to download DWG files I used for this test and let me know if you have any idea how to force CADLib to export them to correct PDF files.
http://download.print-driver.com/ex/mb/cadlib/cadlib-dwg.rar
Mikhael
|
Mikhael
3/29/2019 12:07 PM
|
---|
Additionally, if I try convert "AR11_A1_01.DWG" I attached to PDF, 2-nd page of this PDF looks incorrectly. Drawing on this page is not centered and cropped.
Mikhael
|
Wout
3/29/2019 2:48 PM
|
---|
Hi,
I've made some changes again, the scaling was still incorrect, it should be this instead:
C# Code: double customScaleFactor = 1d; |
Mikhael
3/29/2019 3:51 PM
|
---|
Hi Wout,
Works better now. But pages 2 and 3 are still empty if I try convert file "20180118_Chinchilla_Final Design_based 38769_DET_Comb.dwg" to PDF:
http://download.print-driver.com/ex/mb/cadlib/20180118-Chinchilla.rar
Mikhael
|
Wout
4/4/2019 12:01 AM
|
---|
Hi,
Try this one, there seems to be a very specific condition when the custom print scale is used, not sure if this is correct, but it works on the drawings you provided:
C# Code: double customScaleFactor = 1d; |
Mikhael
4/5/2019 11:52 AM
|
---|
Hi Wout,
Works better now. Thank you!
Mikhael
|