Forum Replies Created
-
AuthorPosts
-
in reply to: Lists containing block element not properly converted to RTF March 8, 2017 at 13:07#29990
Just fixed in the DEV build. A maintenance release is expected to be published till end of the week.
in reply to: pdf’s Table right margin and the content is missing March 7, 2017 at 13:17#29995Thank you for the reply!
I was not able to use the option you suggested,Since we are using the lanscape orientation already.
I am using the below code, in pd4ml probe and it works fine.
pd4ml.addStyle("table { word-wrap: break-word;font-style: italic;width: auto !important }", true);But I used the same code in our application but it is not working for the same HTML,
we are using the below jars,
pd4ml-3.9.5.jar.
ss_css2.jarPlease suggest,if any other version is required.How to check whether the jar is of pro or demo version?
in reply to: Embed TTFs – getting does not seem to be TTF error message March 6, 2017 at 19:53#30005Thank you for the update! I was not sure FontForge is capable to convert one font type to another. I am glad it is.
in reply to: Embed TTFs – getting does not seem to be TTF error message March 6, 2017 at 19:50#30004Thanks again for your help! I was able to use FontForge and convert my OTFs to TTFs and the old version of PD4ML was able to render correctly (at least the small subset of text I have in my proof of concept)
in reply to: pdf’s Table right margin and the content is missing March 6, 2017 at 17:06#29994The content is cut right side as it does not fit given horizontal space, defined by htmlWidth parameter.
htmlWidth can be seen as a frame width of a virtual web browser.The simplest solution is to scale down the content to match the space.
It can be done by an increasing of htmlWidth conversion parameter value.Alternatively you may rotate particular pages from portrait to landscape orientation to win some extra horizontal space.
See https://pd4ml.com/cookbook/pdf_dynamic_format_change.htm
and
https://pd4ml.com/cookbook/pdf_page_formatting.htmAlso there is a method adjustHtmlWidth() https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#adjustHtmlWidth()
It tries to dynamically determine htmlWidth parameter value to let the content fit. But it is not efficient in all the cases. And by really wide content it may lead to tiny unreadable font sizes.in reply to: pdf’s Table right margin and the content is missing March 6, 2017 at 16:56#30000The simplest solution is to scale down the content to match the given horizontal space.
It can be done by an increasing of htmlWidth conversion parameter value.
Alternatively you may rotate particular pages from portrait to landscape orientation to win some extra horizontal space.
See https://pd4ml.com/cookbook/pdf_dynamic_format_change.htm
But the recent solution unfortunately does not satisfies your “without changing the HTML content” requirement.
in reply to: Embed TTFs – getting does not seem to be TTF error message March 6, 2017 at 16:51#30003I am repeating my email comment here:
loading java:archerfonts/Archer-Book.otf [1ms] reject TTF lookup for: 'archer book' can not read 'archer book' from java:archerfonts/Archer-Book.otf: java:archerfonts/Archer-Book.otf is .OTF font file with currently unsupported PostScript outlines ('CFF' glyph table instead of 'loca').Under .OTF extension there can be two different font formats: TTF and Type1 (PostScript).
Archer-Book.otf is obviously Type1. Java provides only limited support for Type1 fonts and in most of the cases it simply gives up by an attempt to instantiate java.awt.Font object from such .OTF file.
As the only robust solution I would recommend to look for a similar TTF (or OTF of TTF format) font and to use it instead.
in reply to: pdf’s Table right margin and the content is missing March 3, 2017 at 08:37#29992We are using an application which automatically creates the html, based on the inputs we provide(same as the message body(text area) where we post a reply/query to any forum. for example the same pd4ml support forum page).Which is a standard functionality of that particular application.
we are converting this auto generated html to pdf. So we can only work with the java code for this auto adjustment of the content of pdf document to fit to html width.
we are facing this right margin and some content from right margin missing issue,specifically when the content of the html includes tables and multi level bulleted list.Can i auto adjust the table width to automatically adjust according to the html width?
is there any java code phrase available for,auto page break option, when the text exceeds the html width limit?in reply to: pdf’s Table right margin and the content is missing February 13, 2017 at 14:55#29991The table is wider than htmlWidth conversion parameter, so it does not fit a frame of a virtual HTML renderer.
Just increase the param.
But take into account: htmlWidth value impacts content scaling factor.
in reply to: Can PDFML Watermark images be displayed only on the printer? February 2, 2017 at 11:49#29998As far as I know PDF file format allows to control visibility (separately for screen and print) only for form objects and watermarks. We plan to add the visibility control option for watermarks in the forthcoming PD4ML release.
For general content, like headers/footers there is no obvious way to implement the feature. But we’ll check if it can be done with action scripting.
in reply to: Mentioned Font size is not rendering in Generated PDF February 1, 2017 at 17:53#29583Initially PD4ML renders a document as for a screen representation (converted all physical units to screen pixels with 72dpi). After the layout is rendered it is stretched or shrank to match the target paper page width. See
https://pd4ml.com/cookbook/pdf_page_formatting.htmif you need to keep physical unit dimensions to exact on the paper, you either need to play with htmlWidth parameter or to trigger pd4ml.protectPhysicalUnitDimensions().
(A drawback of the API call is a possible misbalance of resulting sizes of objects whose dimensions given in physical units and ones defined in screen pixels)
in reply to: Vertical text writing-mode:tb-rl not working 3.9 January 30, 2017 at 09:03#29573Is there any alternative for transform: rotate(-270deg) as writing-mode :tb-rl does not work for 270 deg.
in reply to: Newbie question: How to page break December 29, 2016 at 20:54#27867@tpdietz wrote:
Thanks for the reply. Unfortunately, using
<pd4ml-page-break>also causes our processor to barf. I’ve got a workaround in the Java code, but I would have preferred not to have to go that route. But, at least it works.Thanks again.
Will you able to share the java code that fixed your issue.
in reply to: "Print Ready" PDFs? December 15, 2016 at 09:26#29545Is there any update to this. Facing same challenge.
in reply to: pd4ml:footnote with noref December 12, 2016 at 13:10#29969Thanks for the reply.
I updated the version and it still didn’t work. After some research I found out that if I add bodystyle like this, footnote is not displayed.
String bodyStyleTemplate = "body{ margin-left : %smm;margin-right : %smm;padding : 0px;margin-top:0mm;margin-bottom:0mm;}"; String bodyStyle = String.format(bodyStyleTemplate, left, right); pd4ml.addStyle(bodyStyle, true);I managed to workarount that and the footnote is now displayed. Thanks for brining me on the right path.
-
AuthorPosts
