Forum Replies Created
-
AuthorPosts
-
in reply to: TTF embedding September 14, 2013 at 05:34#27313
i tried this tag but still the problem exist and the Arabic character appear as ?????
in reply to: TTF embedding September 14, 2013 at 06:33#27314@Mohamed Fayek wrote:
i tried this tag but still the problem exist and the Arabic character appear as ?????
in reply to: TTF embedding September 17, 2013 at 09:42#27315Please publish your updated JSP and a sample of its debug output.
in reply to: Troubleshooting September 19, 2013 at 21:07#26870We are using pdf4ml for generating pdf files in our rails application. The way we are calling it is as following:
# build & execute the shell command.
cmd = “java -Xms32m -Xmx128m -jar #{File.dirname(__FILE__)}/#{JAR} file:#{infile} #{outfile}”
puts cmd
#{cmd}
This is called through shell command with all relevant paths included in command. This was running fine since we shifted our app to new our server which is a centos and having java version 7.40. the problem that we are facing on our new server is that when a instance of pdf creation command is used, the java process spikes up the server load and the entire application is down. We can not even open a page in that case. We had reviewed the java pids and found generating following error:
futex(0x7f864824be28, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f864824be54, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, {1379527706, 891077000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)and when the java process is not there the server runs perfectly. We do not have memory issues on our server, every time approximately 2 GB memory is free. We are unable to find a possible reason for this issue so far. The application is running on following software:
1. Apache/2.2.24
2. Mysql : Server version: 5.5.30-cll
3. Rails 2.3.17
4. ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]
5. thin 1.4.1 codename Chromeo
thanks
in reply to: HTML/CSS rendering issues September 27, 2013 at 16:10#26871pd4ml 3.8.5fx1 embedded jar
Windows 7 64 bit
java 1.6.0_38When Running html with an hr tag through the new version of pd4ml for RTF output, I’m seeing RTF codes leaking into the document view. When looking into the RTF file, I’m seeing escaped tags all over.
Example:
<html><br /> <head/><br /> <body><br /> <hr>Disentigrating Fibrous Perforated Squares</hr><br /> </body><br /> </html><br />
Results in:
<br /> ...<br /> {{\line{\*\shppict<br /> ...<br />
In the file. The Document View looks similar.
in reply to: Raw RTF Tags in Viewable Content for HR tags September 27, 2013 at 16:13#29391The problem is known (impacts only v385fx1) and already solved in the dev build. It will take about a week to release.
in reply to: HTML/CSS rendering issues October 5, 2013 at 04:32#26872Hi All:
My page renders fine with the font-awesome icons on the web but the resulting PDF generated from the same page does not include the icons. Guessing there should be some way for me to locate the font-awesome stylesheet somewhere so that PD4ML can find it during PDF generation.
Anyone been able to do that or maybe could point me in the right direction?
in reply to: Anybody have a way to include font-awesome icons in the PDF? October 7, 2013 at 13:59#29392Make sure you use PD4ML Pro (or a derived volume license) and utilize TTF Embedding feature:
in reply to: td border is not displayed. October 10, 2013 at 09:21in reply to: HTML/CSS rendering issues October 17, 2013 at 11:58#26873in documentation the attribute “pageBackgroundImageUrl” of header tag is working from Pro version..i am working on pd4ml.pro.trial.385fx1…it is not working in this version also…pls help me to work on that attribute .if possible pls post a sample app.
in reply to: HTML/CSS rendering issues October 18, 2013 at 02:45#26874Hi ,
We are having a hyperlink which has query parameters passed in it like http://ww.google.com?username=test&password=1234 and the link works perfectly when we render the HTML and when PDF is produced from the HTML the link is encoded to http://ww.google.com?username=test&password=1234 .The & symbol is replaced with &.Can someone let me know how to bypass it.
Thanks In Advance
in reply to: Hyperlink with & are converted to &..How to by-pass it October 18, 2013 at 12:36#29396Which PD4ML do you currently use? I tested with the most recent one – no such probs.
in reply to: pageBackgroundImageUrl attribute not working in header tag October 18, 2013 at 12:52#29395Try to switch debug info on (pd4ml.enableDebugInfo() or debug=”true” attibute of a custom JSP transform tag), collect and publish its output. Also please publish here a PDF sample with a not applied background image.
in reply to: HTML/CSS rendering issues October 20, 2013 at 18:32#26875I’ve discovered that images with a # symbol in the URL don’t render in PD4ML, while they do render in web browsers. This happens on both Mac OS X and Windows. You can test this with the following:
1. Place an image in a folder with a # sign in it. For instance, “~/Desktop/#Test/Test.jpg” (Mac OS X) or “Users/[Name]/Desktop/#Test/Test.jpg” (Windows).
2. Run the following Java code:
PD4ML pd4ml = new PD4ML();<br /> String portraitPath = System.getProperty("user.home") + File.separator + "Desktop" + File.separator + "#Test" + File.separator + "Test.jpg";<br /> portraitPath = new File(portraitPath).toURI().toString();<br /> String outputHTML = "<html><body><img src="" + portraitPath + "" /></body></html>";<br /> FileOutputStream fos = new FileOutputStream(new File(System.getProperty("user.home") + "/Desktop/Test.pdf"));<br /> pd4ml.render(new StringReader(outputHTML), fos);<br />
The result will be an empty PDF. If you change the directory from “#Test” to “Test”, both in the code and in the file system, the portrait will appear properly.in reply to: HTML/CSS rendering issues October 20, 2013 at 23:50#26876I am trying to resize an image using the max-height and max-width CSS properties, but it doesn’t seem to be working. Images always appear at their original size. Below is a sample test case:
<html><br /> <style><br /> img {<br /> max-width: 100px;<br /> max-height: 100px;<br /> }<br /> </style><br /> <html><br /> <body><br /> <img src="https://www.google.com/images/srpr/logo11w.png" /><br /> </body><br /> </html>
Is this not supported or am I doing something wrong? And if it is not supported, is there an estimated time for when it will be supported? -
AuthorPosts