Forum Replies Created
-
AuthorPosts
-
in reply to: PDF generation with html with css3 February 8, 2018 at 11:40#30126
For the time being the feature is not supported.
in reply to: fonts.jar not working in Linux system February 8, 2018 at 11:38#30122Did you try to explicitly include pd4ml.jar and fonts.jar to the classpath?
(not just place them to a shared lib/ folder etc)in reply to: PDF generation with html with css3 February 5, 2018 at 11:37#30125A lot of CSS3 features supported, but currently not all the spec.
in reply to: Dynamical image February 5, 2018 at 11:35#30121> Now pd4ml read this with ‘null’ for src attribut …
I would suspect the placeholder is wrongly substituted with null (by JSP container etc) before PD4ML came into action.
in reply to: Expression Language February 5, 2018 at 11:28#30123PD4ML supports dynamic placeholder $[var] substitution with pd4ml.setDynamicParams() API call. (note the square brackets!)
Do you try to use ${test.src} with pd4ml.setDynamicParams()? I am afraid it does not work.
If it is about a more general use of Expression Language, please make sure the EL elements are resolved before the HTML is passed to PD4ML. PD4ML does not process EL by itself.
in reply to: PDF page headers/footers definition options December 4, 2017 at 06:30#27297Please publish a PDF sample generated from your HTML code.
Please make sure you use PD4ML Pro (or a derived VOL license binary). Also try to place
<pd4ml:page.break>right after opening<body>tag. Does it changes anything?in reply to: Text on right side is cut away December 1, 2017 at 12:33#30114Hmm… On my workstation it always uses Arial instead of any (even embedded) font.
in reply to: Text on right side is cut away December 1, 2017 at 12:24#30113If you open the document in Acroread its content is rendered correctly using Times font.
IcePDF for some reason uses Arial instead (however in doc font info it still refers to Times).As for me it is a bug of IcePDF, or its free version restriction (which does not include a font engine, according to the download page).
I would recommend to generate PDF with TTFs embedded, not relying to built-in viewer fonts.
in reply to: Text on right side is cut away November 30, 2017 at 18:33#30111Is the issue only with icePDF? Does the doc layout appear in Acroread as expected?
in reply to: PDF page headers/footers definition options November 30, 2017 at 18:20#27295Try to define a footer inline with
<pd4ml:page.footer scope="even">and<pd4ml:page.footer scope="odd">tags.See https://pd4ml.com/cookbook/pdf_header_footer_generation.htm
If your environment is sensitive namespace declarations, use an alternative tag naming:
<pd4ml-page-footer>in reply to: Text on right side is cut away November 9, 2017 at 21:55#30119The way PD4ML scales HTML layout to “paper” media is explained by the link:
https://pd4ml.com/cookbook/pdf_page_formatting.htmPD4ML uses 72dpi to translate screen pixels to physical units, but after the physical dimensions are translated to screen pixels, the entire layout is translated back to physical units (scaled to fit the target media width). The scale factor depends on htmlWidth, target paper format and paper margins.
protectPhysicalUnitDimensions() protect elements, whose sizes given i.e. in mm, from being scaled at the phase.
FYI constants used by PD4ML:
A4 is 595 x 842pt
MM_PER_INCH = 25.4; POINTS_PER_MM = 2.835; POINTS_PER_INCH = 72; PIXELS_PER_POINT = 1.35; PIXELS_PER_PICA = 12 * PIXELS_PER_POINT;
Regarding a viewer: I’ve got no good tool to recommend, but we definitely have to test PD4ML output with ICE PDF to check what is wrong there.
in reply to: Text on right side is cut away November 9, 2017 at 20:46#30117If you define HTML/CSS dimensions in physical units, try
pd4ml.protectPhysicalUnitDimensions() API call.in reply to: not all attachments attached to resulting pdf October 13, 2017 at 23:34#30106Does LN mean Lotus Notes there?
in reply to: Does PD4ML.Net support Bootstrap and other styling libraries October 13, 2017 at 16:34#30058A typical Bootstrap HTML layout utilizes some features, which are currently not supported by PD4ML (i.e. rounded borders, specially styled lists etc). The features will be addressed by new PD4ML versions.
in reply to: is there a way to use Angular js views as input to the PD4ML October 13, 2017 at 15:04#30099PD4ML does not support JavaScript. If the views are created on a fly with the client-side JavaScript – there is no simple way to convert such views to PDF.
The following is a possible direction to go:
html-css-to-pdf-rendering-issues-f3/is-javascript-supported-t216.html -
AuthorPosts
