Page 1 of 1
Large PDF export is blank
Posted: 03 Mar 2015, 13:02
by mita
Hello,
I have a trouble.
I want to convert from HPGL2 to PDF.
However, it fails if the CAD-image is large.
(Returned a blank pdf)
Code: Select all
CADToPDF pdf = new CADToPDF(cadImage);
pdf.Settings.PageWidth = cadImage.AbsWidth;
pdf.Settings.PageHeight = cadImage.AbsHeight;
pdf.Settings.IsShowLineWeight = true;
pdf.Settings.LineWeightScale = 0.05;
pdf.SaveToFile(filename);
In particular, size of 4756 * 841mm(size:4A0) CAD-Image is success.
size of 5945 * 841mm(size:5A0) CAD-Image is fails.
It reproduce in the demo program,
I will probably success, If I can change the Export PDF version(1.5 or higher).
But I do not know how to configure it.
Please help me.
Using product is CAD Import .NET 9
Mita,
Re: Large PDF export is blank
Posted: 04 Mar 2015, 16:04
by support
Hello Mita,
Could you send the HPGL file you have a problem with to the Technical Support E-mail, for testing?
Mikhail
Re: Large PDF export is blank
Posted: 12 Mar 2015, 20:45
by support
Hello Mita,
The library generates PDF 1.4 format files. PDF 1.4 version has a maximum page size that's enforced by Adobe Acrobat. If you open a large document in Adobe Acrobat, it will show a blank document and not report any error.
According to the PDF Reference documentation:
In PDF versions earlier than PDF 1.6, the size of the default user space unit is fixed at 172 inch. In Acrobat viewers earlier than version 4.0, the minimum allowed page size is 72 by 72 units in default user space (1 by 1 inch); the maximum is 3240 by 3240 units (45 by 45 inches). In Acrobat versions 5.0 and later, the minimum allowed page size is 3 by 3 units (approximately 0.04 by 0.04 inch); the maximum is 14,400 by 14,400 units (200 by 200 inches).
Therefore, since it's a PDF 1.4 format restriction, there's nothing we can do except warning the users that the large documents can't be read with Adobe Acrobat (though it may be read correctly with some other PDF viewers).
Mikhail
Re: Large PDF export is blank
Posted: 13 Mar 2015, 06:07
by mita
Hi Mikhail
Thank you for information.
I was changed to 1.6 a large blank PDF from 1.4 using the iTextSharp.
However, it was left blank page.
This problem is, I avoided by reducing the page size.
But, I hope that the PDF version settings and other PDF description, etc. will be able to set by CadImport Library.
Thank you.
Mita
Re: Large PDF export is blank
Posted: 13 Mar 2015, 13:52
by support
Hello Mita,
Have you tried to open a large PDF document with other viewers (Foxit Reader, for instance)? According to the PDF Reference, the page size limitation concerns only Acrobat Reader.
Mikhail
Re: Large PDF export is blank
Posted: 16 Mar 2015, 04:56
by mita
Hi Mikhail,
As far as I have confirmed in FoxIt and PDF-XChange, it was displayed both!
However, customers cannot be used other than the Adobe Acrobat Reader.
Thank you for information.
Mita