PDF clipped when exporting dwg
Gabrielecocco1510
9/5/2018 6:32 PM
|
---|
Hi,
I'm using the latest version of CadLib (4.0.38.94) and I'm facing an issue when generating the PDF from an elevator blueprint that I draw within my software.
The DWG is correctly produced and written to file. To the contrary, the PDF results clipped.
I attach the DWG and the clipped PDF. The code I'm using to generate the PDF is the following.
C# Code: public class PdfProjectExporter
{
public void ExportToFile( |
Gabrielecocco1510
9/5/2018 6:34 PM
|
---|
Adding the zipped DWG cause the plain DWG is too big (4.4 mb) and the forum reports an error when trying to upload it.
|
Gabrielecocco1510
9/13/2018 9:13 AM
|
---|
Nobody able to help me out?
|
Wout
9/13/2018 12:36 PM
|
---|
The pdf is not clipped, it's fine. Firefox displays it ok.
Microsoft Edge doesn't show it entirely due to the large size.
Your using a very large size in inches: 247 inch, that's gigantic. I suspect Pdf viewers cannot handle this.
Pdf is intended to represent paper sizes, so I recommend just sticking with normal paper sizes like A4, A3, etc. I would not use model space bounds as a paper size, as model space does not represent paper space.
- Wout
|
Gabrielecocco1510
9/19/2018 5:51 PM
|
---|
I'm using acrobat reader, so among all the viewers, it should look ok there.
Anyway I see what you mean about sizes. Can you help me reshaping the code above in order to resize and fit on a A4 paper?
Thanks!
|
Wout
9/19/2018 5:56 PM
|
---|
Well apparently Acrobat does not support 247 inch paper sizes, I don't think it should.
The original code was already correct, just use the bit that you commented out:
C# Code: / |