Text not on scale when exporting to PDF from Layout
Hi, got another issue with exporting to pdf. I also have an open ticket with this issue.
Thought I can share it here, too:
I was running into this whilst the final days of a project.
Preparing my layouts I realised that after exporting my layouts to PDF, all test- objects were a lot smaller than seen in layout- space. Even text put directly on a sheet was way smaller.
First I thought that it was a scale, layout, viewport or style thing but after opening a clean template I was able to reproduce the oddness right away.
I´ve included a couple of screenshots and the actual DWG for you to investigate.
Please look into this.
Thanks in advance.
Preparing my layouts I realised that after exporting my layouts to PDF, all test- objects were a lot smaller than seen in layout- space. Even text put directly on a sheet was way smaller.
First I thought that it was a scale, layout, viewport or style thing but after opening a clean template I was able to reproduce the oddness right away.
I´ve included a couple of screenshots and the actual DWG for you to investigate.
Please look into this.
Thanks in advance.
0
Comments
-
The user and all related content has been deleted.0
-
The user and all related content has been deleted.0
-
I can confirm that both issues are not Mac-specific, but occur on Linux as well.
As to the wrong font scaling: this is a long standing problem. A SR that I opened in 2013 / on V13 (#41434) has been followed for some time, but was eventually closed in 2014 / V15 with the comment: "our team is aware about this issue but we don't have short plans to work on this".
I hope this will change one day, but in the mean time, you seem to have two options to get correctly scaled font output:
1.) either you use pdf export with PdfTtfTextAsGeometry enabled, which would result in triangulated text output (a rather crude workaround),
or
2.) you print to pdf, which will result - at least with cups-pdf - in text converted to filled paths (it should actually result in text as text if TTFASTEXT has the second bit set, but this is - again on linux - not working at the moment, maybe because ghostscript is used for conversion).
See the attached pdfs for comparison.
As to the second issue (vanishing print output): this happened to me as well, when I tried to print the layout of the originally attached dwg after just setting the "Printer / Plotter configuration" to my pdf printer. The command history showed:
: _print
Plotter configuration not found
You have reached the limits of zooming in. Unable to zoom in any closer.
I then tried to open the page layout again, but this failed with the message:
: CPAGESETUP
Cannot set d to that value.
My guess is that the paper size did not get correctly initialized in this case, so I closed and reopened the file, chose the pdf-printer again, and then explicitly selected an existing paper size (A4) from the drop-down-list prior to printing - this worked and produced the attached file with cups-pdf in its name.
You'll have to see for yourself if this also clears the problem with pdf-writer; if not, you could give cups-pdf a try.0 -
The user and all related content has been deleted.0
-
Hi Marcus and Knut,Thanks for your replies and suggestions.I have tested installing PDFwriter and VipRiser and using them for making pdfs successfully. And took quite a while to see what the output was, because bricsCad seemed to crash but in the end the pdfs where there. It is a workaround, nothing more.Lucky me but no blank pages until now.I fully agree that a commercial CAD product should be able to publish to pdf without any errors like this.kind regardsClemens0
-
Hi Marcus,
the scaling problem did not occur with all fonts when I raised the SR, and printing to pdf always worked for me, so I considered this issue not a pressing one. But if for some reason printing to pdf stops working, that's of course a different story!
I think the problem I described when trying to print the layout may have been due to an invalid "Custom" paper size entry in the ppd file of the cups-pdf printer. But all settings in your page setup look correct, and if you experience the same problem with any printer, it is not likely to be linked to a specific printer description file, but rather to a general configuration problem with cups or bricscad.
In such a situation, I would create a new user and check if the result is still the same in a 'clean' environment - sorry that I cannot provide more help here...0 -
I meanwhile had a look at the blank pages output, in context of support request 67170 added by Marcus.
Enabling "Plot transparencies" causes the empty output.
As far as I know this is a windows-specific feature that accidentally slipped into the mac/linux version. On windows this option results in using GDI+ instead of GDI. (GDI+ supports transparencies, plain GDI does not.) We are discussing internally how to proceed with this option on mac/linux.
About the text scaling issues: as far as I can tell from task history only specific ttf fonts bring scaling issues. We will investigate which fonts suffer from this, and document the conditions.
Kind Regards
Tijs0 -
Meanwhile we have further investigated the text scaling issues during PDF export and responded in the support requests.
The conclusion at the moment is:
on linux/mac, to create a PDF:
- convert ttf text to geometry, by enabling PDFTTFTEXTASGEOMETRY
- disable "Plot transparencies"
A knowledge base article will be created to make the current situation more clear.
To schedule further work it would be useful to learn opinions about these options.
May I assume that at the moment nobody needs "Plot transparencies", and always converting text to geometry is ok for everyone?
Kind Regards
Tijs Vermeulen0 -
Hello Tijs,
IMO both transparency and working font output ( pfb and otf as well as ttf) are important base functionality and need to be fixed ASAP.
Almost everything I do ends up in pdf, so these limitations are quite annoying...0 -
Hi Tijs,I am with Knut. Your suggestions do temporarily serve as a workaround for the bug of Bricscad's pdf- engine.But to assume that no one needs these features, I disagree.I did tests with pdf writer and it failed printing pdfs with a lot of different hatches.The Bricscad - pdf - engine did very well, but turned a pdf attached as x-ref into my drawing, into pixel madness.For now I know what to do and what not to do when working with BricsCad and publishing, but I really would like this issue seen solved as quickly as possible.Thanks in advance.Kind regards, Clemens0
-
Thanks for the feedback, it is useful!
Proper scaling of text, even if not converting to geometry, will be further treated with priority.
>May I assume that at the moment nobody needs "Plot transparencies", and always converting text to geometry is ok for everyone?
Mind that it was a genuine question. I had not taken this assumption yet. Actually my question was a bit backward. PDF output issues are high priority in general, but I wanted confirmation to avoid spending effort on a potentially unwanted feature.
Before I can tell more about plot transparencies it will be further investigated how much work it would be to also implement it in opengl. (as said it is a new V16 feature implemented in GDI+)
Kind Regards
Tijs0
This discussion has been closed.
