Forum Replies Created
-
AuthorPosts
-
in reply to: PD4ML Tips & Tricks December 23, 2015 at 13:01#26849
How can I define custom page-sze for my report. (15″ x 11″ Paper size) ?
I develop using rollbase HTML-to-PDF feature.in reply to: Images not working December 23, 2015 at 15:31in reply to: System Error: Stack Underflow December 28, 2015 at 13:01#29491I am currently testing v398fx3 pre-release and the issue is not reproducible.
v398fx2 also work flawless with the HTML. Obviously it is a bug of older versions only.
in reply to: Unable to embed document December 28, 2015 at 17:05#29366Normally PD4ML extracts a file name from attachments URL. In your case an attachment body is passed as a base64-encoded stream of bytes with no file name hint – in such situation a description attribute with a file name is needed.
In the forthcoming v398fx3 we implemented an “auto-guess” of file extension by a mime type. If there is no description, it will extract a mime type from “data:” prefix.
For example:
<pd4ml:attachment icon="PushPin"> data:text/plain;base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0 </pd4ml:attachment>
auto-names the attachment as “attachment.txt”
in reply to: How to define custom page size for HTML to PDF December 29, 2015 at 14:42#29349pd4ml.setPageSize() API call takes page dimensions in typographic points as a parameter.
public static final int POINTS_PER_INCH = 72; ... pd4ml.setPageSize( new java.awt.Dimension(15 * POINTS_PER_INCH, 11 * POINTS_PER_INCH) );
in reply to: Empty IMG src hangs PD4ML December 29, 2015 at 14:44#29390On my test environment it does not hang, but in forthcoming v398fx3 we anyway worked potential issues around.
in reply to: org/w3c/dom/* classes in ss_css2.jar December 30, 2015 at 09:23#28101Hi,
I used Zurich font in my pdf. It is displaying in html but not in pdf. In pdf, the default font is appearing.fonts folder contains all type of font files and properties file with code:
Zurich BT=Zurich.ttfjsp file:
<link href="font.css" rel="stylesheet"> <pd4ml:usettf from="../fonts"/>
font.css:
@font-face
{
font-family: ‘Zurich BT’;
src: url(‘fonts/Zurich BT.eot’);
src: local(‘Zurich BT’), url(‘fonts/Zurich BT.ttf’) format(‘truetype’), url(‘fonts/Zurich BT.woff’) format(‘woff’), url(‘fonts/Zurich BT.svg’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
.Zurich{
font-family: ‘Zurich BT’;
font-size:12px;
}in reply to: org/w3c/dom/* classes in ss_css2.jar December 30, 2015 at 09:24#28102@DurgaPrasad wrote:
Hi,
I used Zurich font in my pdf. It is displaying in html but not in pdf. In pdf, the default font is appearing.fonts folder contains all type of font files and properties file with code:
Zurich BT=Zurich.ttfjsp file:
<link href="font.css" rel="stylesheet"> <pd4ml:usettf from="../fonts"/>
font.css:
@font-face
{
font-family: ‘Zurich BT’;
src: url(‘fonts/Zurich BT.eot’);
src: local(‘Zurich BT’), url(‘fonts/Zurich BT.ttf’) format(‘truetype’), url(‘fonts/Zurich BT.woff’) format(‘woff’), url(‘fonts/Zurich BT.svg’) format(‘svg’);
font-weight: normal;
font-style: normal;
}
.Zurich{
font-family: ‘Zurich BT’;
font-size:12px;
}in reply to: HTML/CSS rendering issues January 1, 2016 at 12:13#26852Hi,
when ever we try to pass string contain like single quote or ‘&’ to text tag in SVG where we getting blank page.
kindly do need full to provide solutionThank you .
in reply to: Special Characters in input tags broken with 3.98 January 6, 2016 at 07:16#29438The bug still exists in 398fx3 Pro
in reply to: Troubleshooting January 7, 2016 at 13:02#26826Hello :
I use the pd4ml in 2 domain hosted in the same server. In one domain all is Ok, but in the other I can not create correct pdf. In the server are created pdf all with 16Kb of size that can not been displayed.The aplication that generate this pdf works correctly and without modification in the code suddenly crash .
In teh console of Firefox firebug I obtain
Error: Invalid XRef stream header
pdf.worker.js (línea 232)
<Sistema>XRef_readXRef@resource://pdf.js/build/pdf.worker.js:3708:13
XRef_parse@resource://pdf.js/build/pdf.worker.js:3296:23
PDFDocument_setup@resource://pdf.js/build/pdf.worker.js:2469:7
PDFDocument_parse@resource://pdf.js/build/pdf.worker.js:2350:7
ensureHelper@resource://pdf.js/build/pdf.worker.js:1971:22
NetworkPdfManager_ensure/<@resource://pdf.js/build/pdf.worker.js:1985:7 NetworkPdfManager_ensure@resource://pdf.js/build/pdf.worker.js:1965:1 BasePdfManager_ensureDoc@resource://pdf.js/build/pdf.worker.js:1832:14 loadDocument/<@resource://pdf.js/build/pdf.worker.js:33604:11 pdf.worker.js (línea 233)<Sistema> Warning: Unsupported feature "unknown" pdf.worker.js (línea 224) <Sistema> Warning: Unsupported feature "unknown" Warning: Indexing all PDF objects pdf.worker.js (línea 224) <Sistema>
Fichero PDF no válido o corrupto. PDF.js v1.1.469 (build: f06aa6a) Mensaje: Invalid PDF structure In other exewcution with no header I obtain java.io.IOException: Server returned HTTP response code: 403 for URL: http://xxxxxxx/certificado/certificado4.php? at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1674) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1672) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1670) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1243) at org.zefer.cache.d.getResourceAsBytes(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source) at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source) at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://campus.cursosccc.com/certificado/certificado4.php?nombre=DIANA%20CONSTANZA-HURTADO-LOPEZ&curso=50B4221&nombrecurso=MONITOR/A%20DE%20PINTURA%20DECORATIVA.%20TECNICAS%20TRADICIONALES&fi=2011&ff=&horas=&matricula=80021114&anexo=0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:2730) at org.zefer.cache.CookieManager.storeCookies(Unknown Source) … 7 more Exception in thread “main” java.lang.NullPointerException at org.zefer.pd4ml.PD4ML.o00000(Unknown Source) at org.zefer.pd4ml.PD4ML.render(Unknown Source) at Pd4Cmd.o00000(Unknown Source) at Pd4Cmd.main(Unknown Source)Somebody can help me?
thanks in advance.Alberto Mozo
in reply to: How to define custom page size for HTML to PDF January 8, 2016 at 07:43in reply to: could no create pdf correctly January 8, 2016 at 13:44#29257In the problem case, PD4ML tries to access/load http://xxxxxxx/certificado/certificado4.php and receives back 403 error code instead of HTML content to convert.
First I would recommend to look through the server’s log files to determine, why PD4ML is not authorized to load the page.
in reply to: HTML/CSS rendering issues January 11, 2016 at 09:46#26806Hi,
I’m going to generate pdf which contains svg tags. when I’m going to use text tag, it contains ‘&'(ampersand) symbol as its dynamic data. Its giving exception so I’m replacing it with ‘&’. In this case there is no exception but only substring followed by ‘&'(ampersand) is printed.Ex: Actual:- Fidelity Management & Research
Printed:- Researchplease give an update by any of you people.
Thanksin reply to: could no create pdf correctly January 11, 2016 at 12:46#29258Hello :
Finally we have talk to our ISP. He has said that the problem is with the user-agent and we have made a change in the calll to Java
$cmdline = “$java -Xmx512m -Djava.awt.headless=true -Dhttp.agent=certi
It works.
Thanks
Alberto Mozo
-
AuthorPosts
