Forum Replies Created
-
AuthorPosts
-
in reply to: Batik implementation June 19, 2019 at 10:46#30210
Hi there,
We’ve got the Batik-all dependency setup fine. The issue is more with the Java steps required to use Batik within PD4ML. The code that we have is essentially as follows:
this.pd4ml = new com.pd4ml.PD4ML();
Dimension dimension= PD4Constants.A4;
pd4ml.setPageSize(new PageSize(dimension.width, dimension.height));Insets insets = new java.awt.Insets(5,5,5,5);
pd4ml.setPageMargins(new PageMargins(insets.left, insets.top, insets.right, insets.bottom));pd4ml.readHTML(is);
pd4ml.writePDF(baos);I’m not exactly sure where Batik fits in this process, though I’d imagine it’d be somewhere between readHTML and writePDF.
To clarify exactly what the issue is, we are trying to render a SVG textpath (which doesn’t seem to be supported by the PD4ML in-built SVG renderer), so we’re trying to use Batik within the code that we currently have, but are not sure how.
Is there a method that needs to be called in order to load Batik into PD4ML?
Kind regards
in reply to: Batik implementation June 19, 2019 at 11:00#30211When PD4ML encounters
No explicit API calls needed to activate it.
Batik is more strict regarding SVG syntax, so if it starts to panic e.g. because of missing namespace xmlns=”http://www.w3.org/2000/svg” in <svg> tag – that means Batik is definitely in action.
You may explicitly disable Batik by
com.pd4ml.plugins.BatikSvgCustomTag.disable = true;
in reply to: Batik implementation July 1, 2019 at 09:13#30212Really great information
web design companyin reply to: Licensing / Purchasing of PD4ML July 12, 2019 at 14:47#33407Hi
Does a single license include the possibility of deployment to a dev, QA/test AND production application server by any chance?
thanks
in reply to: Single License Question July 12, 2019 at 15:03#33408Prior to PD4ML v4 our licensing model required to purchase an additional single license to cover development environment. For v4 we removed the requirement, however there are opinions here to return it back. We are collecting statistics now to make the final decision later.
If you order a single license right now, it will also cover your DEV needs – according to the current licensing terms. PD4ML Volume licenses (now they are called PD4ML Dev Site) always covered and are going to cover DEV environment.
in reply to: Single License Question July 12, 2019 at 15:05#33409Great, thanks for the information.
in reply to: Technical questions / Troubleshooting July 17, 2019 at 02:37#33493Apparently “colspan” is not a valid attribute for “TD” HTML. But why I’m getting a OutOfMemoryError error?
error log:
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}
java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.zefer.html.parser.g.o00000(Unknown Source)
at org.zefer.html.parser.b.õo0000(Unknown Source)
at org.zefer.html.parser.b.ÔÒ0000(Unknown Source)
at org.zefer.html.parser.f.oo0000(Unknown Source)
at org.zefer.html.parser.f.intsuper(Unknown Source)
at org.zefer.html.parser.f.ö00000(Unknown Source)
at org.zefer.html.parser.f.öO0000(Unknown Source)
at org.zefer.html.parser.f.ÔO0000(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.html.doc.e.super(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.r.super(Unknown Source)
at org.zefer.html.doc.r.Òô0000(Unknown Source)
at org.zefer.html.doc.o.Ò00000(Unknown Source)
at org.zefer.html.doc.o.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.Document.layout(Unknown Source)
at org.zefer.html.doc.e.super(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.r.super(Unknown Source)
at org.zefer.html.doc.r.Òô0000(Unknown Source)
at org.zefer.html.doc.o.Ò00000(Unknown Source)
at org.zefer.html.doc.o.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.zefer.html.parser.g.o00000(Unknown Source)
at org.zefer.html.parser.b.õo0000(Unknown Source)
at org.zefer.html.parser.b.ÔÒ0000(Unknown Source)
at org.zefer.html.parser.f.oo0000(Unknown Source)
at org.zefer.html.parser.f.öO0000(Unknown Source)
at org.zefer.html.parser.f.ÔO0000(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)
at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)
at org.zefer.html.doc.e.super(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.r.super(Unknown Source)
at org.zefer.html.doc.r.Ó00000(Unknown Source)
at org.zefer.html.doc.o.Ò00000(Unknown Source)
at org.zefer.html.doc.o.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.Document.layout(Unknown Source)
at org.zefer.html.doc.e.super(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.r.super(Unknown Source)
at org.zefer.html.doc.r.Òô0000(Unknown Source)
at org.zefer.html.doc.o.Ò00000(Unknown Source)
at org.zefer.html.doc.o.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
at org.zefer.html.doc.view.d.o00000(Unknown Source)
at org.zefer.html.doc.eb.super(Unknown Source)
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: Java heap space
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
TableCellElement(td) {colspan=8, vertical-align=top, font-size=9, font-family=arial, font-weight=normal, display=table-cell}java.lang.OutOfMemoryError: GC overhead limit exceeded
in reply to: java.lang.OutOfMemoryError July 17, 2019 at 10:33#33494In fact “colspan” is a valid attribute for TD and it does not seem it causes the exception. OutOfMemoryError is an indication of a resource (memory) exhaustion.
How big is the source HTML document? Do you run PD4ML with -Xmx??? JVM parameter?
in reply to: Technical questions / Troubleshooting August 2, 2019 at 09:15#33496Hi,
is there any way to emulate the behaviour of enableSmartTableBreaks() in PD4ML v4?
Thanks
in reply to: Technical questions / Troubleshooting August 6, 2019 at 13:43in reply to: enableSmartTableBreaks August 6, 2019 at 20:51in reply to: Arabic text not displaying properly August 7, 2019 at 06:37#33646In order to output non-Latin text, you need to configure TTF embedding. See https://pd4ml.tech/pdf-fonts/
in reply to: Technical questions / Troubleshooting August 9, 2019 at 07:12#33647Hi,
We are in process of buying pd4ml UA license. So currently, we are performing some tests with the demo jar (pd4ml v4.0.5-SNAPSHOT).
When border-radius is specified along with background-color for an element, background-color is being applied to the complete box, not taking into consideration the border-radius specified.
Please find the attached markup and the pdf generated with the markup in attachmentsThanks,
RekhaAttachments:
You must be logged in to view attached files.in reply to: border-radius with back-ground color not working properly August 9, 2019 at 07:13#33649Attaching the markup
<html>
<head>
<style>
body{
background-color: #cccccc;
}
button{
border: 1px solid blue;
border-radius: 20px;
background-color: #ffffff;
height: 30px;
}
</style>
</head><body>
<button> Button </button>
</body>
</html>- This reply was modified 5 years, 4 months ago by Rekha Tavvala. Reason: Not able to attach markup
in reply to: Technical questions / Troubleshooting August 9, 2019 at 09:18#33651Hi,
We are in process of buying pd4ml UA license. So currently, we are performing some tests with the demo jar (pd4ml v4.0.5-SNAPSHOT).
When external stylesheet is present in <body> in html markup, the css is not being parsed whereas the stylesheet if mentioned within <head> is working properly.
Markup being used:
<html>
<head>
<link rel=”stylesheet” type=”text/css” href=”TestCss1.css”/>
</head>
<body><link rel=”stylesheet” type=”text/css” href=”TestCss2.css”/><p> I am a para </p>
</body>
</html>Here the css present in TestCss1.css is getting applied in PDF. But the css present in TestCss2.css is NOT getting applied in PDF.
With pd4ml-3.1 (V3), this seems to be working. So is this change made deliberately in v4? Or can we expect this usecase to be fixed in V4? Please suggest.Thanks,
Rekha- This topic was modified 5 years, 4 months ago by Rekha Tavvala.
- This topic was modified 5 years, 4 months ago by Rekha Tavvala.
-
AuthorPosts