Forum Replies Created
-
AuthorPosts
-
in reply to: Css style inheritance January 27, 2012 at 16:41#28807
Hi Kalle,
it depends on what you call “inheritance”. I believe we’re looking at a double-class selector issue here.That kind of selectors is generally not robust, as MSIE – for example – doesn’t evaluate them correctly either.
In MSIE, a selector like .class1.class2 {} will be evaluated as .class2{} – all elements with the class class2 will be influenced.
Likewise, in PD4ML it seems to be the first class that gets honored.So, in my opinion, the question of your post is: does PD4ML support double-class selectors?
And a robustness hint is: try to avoid them as they’re problematic with browsers as well (at least to my experience).
HTH,
Viktorin reply to: Css style inheritance January 27, 2012 at 16:49#28808To be honest I even did not know, that there is such type of selectors.
We need to check if ss_css2.jar (CSS library PD4ML relies on) correctly parses double selectors. If yes, the feature implementation does not seem to be a complex task.
in reply to: Positioning – bottom ignored January 27, 2012 at 16:52#28689I add my “want” vote as well. Please! π
In my case it’s “right:” that we’re sorely missing.in reply to: General questions / FAQ January 28, 2012 at 00:57#26667Pd4ml api is right now defaulting the generated pdf to Times New Roman fonttype.
I just want Verdana and Georgia fontype (.ttf) to be used while generating the pdf. The PD4ML demo jar code I am using is as below:
PD4ML pd4ml = new PD4ML();
pd4ml.useTTF(“/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts”,true)
pd4ml.setDefaultTTFs(“Verdana”, “Georgia”);
pd4ml.enableDebugInfo();pd4fonts.properties file present in System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/fonts directory has following contents:
.Keyboard=Keyboard.ttf
Georgia=georgia.ttf
Verdana=verdana.ttfPlease let me know if I am missing anything obvious since I have the required .ttf files in the above directory. Any help would be appreciated.
in reply to: images won’t render January 30, 2012 at 10:35#28828ahh I see-
In case anyone else has the problem, I have gotten around it by putting the full unc path to the server which servers up the images. Example:
that has sorted out the issue and the images are rendered.
Thanks
in reply to: HTML/CSS rendering issues January 30, 2012 at 15:13#26668Hi,
This css line doesn’t seem to work during conversion:
background: url(imgs/dotleaders.gif) bottom left repeat-x;Also Special charater like β doesn’t apper on PDF doc instead we get this “”.
Any solutions to this. Will this be fixed in the next release?Kunal
in reply to: repeat-x attribute and check-box not working January 30, 2012 at 15:14#28838In place of check-box symbol we get Γ’ΖΕΎ in the PDF doc.
in reply to: General questions / FAQ January 30, 2012 at 17:49#26669I wonder if you can help me – I have been trying to get your ttf embedding feature to work all afternoon and am having no luck. We are looking into to PD4ML for a chemical website so greek symbols are essential.
the jsp page:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tlds/pd4ml.tld" prefix="pd4ml" %>
PD4ML embedded fonts test
Γ
Hello, World!Γ
b
I have put the fonts in a directory and generated the properties file:#this is an autogenerated file. please remove manually any references to copyrighted fonts
#Mon Jan 30 16:47:43 GMT 2012
Arial=arial.ttf
Arial Bold=arialbd.ttf
Arial Bold Italic=arialbi.ttf
Arial Italic=ariali.ttf
Courier New=cour.ttf
Courier New Bold=courbd.ttf
Courier New Bold Italic=courbi.ttf
Courier New Italic=couri.ttf
Symbol=symbol.ttf
Times New Roman=times.ttf
Times New Roman Bold=timesbd.ttf
Times New Roman Bold Italic=timesbi.ttf
Times New Roman Italic=timesi.ttfand referred to this. ( I am using windows so have not put this properties file directly into the windows/fonts directory as it will not accept this!) I have also put them in a jar , registered the library as shown above. I have tried rendering from the page. It seems to get assci chars, in the font, i.e. abcde…., ok but not any symbols.
?
Hello, World!
??????, ???!
?
b
What I need to do is get it to render from a java class
html.useTTF( “java:fonts2”, true );response.setContentType(“application/pdf; charset=utf-8”);
response.setHeader(“Content-disposition”, “inline; filename=test4.pdf”);
if (!request.isSecure()) {
response.setHeader(“Pragma”, “no-cache”);
response.setHeader(“Expires”, “-10000”);
}html.render(url, baos);
This still does not render any Greek symbols only ‘?’! Any help would be appreciated!
in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 18:45#28839I have downloaded the pro demo version to do the proof of concept for this but when I do the debug I just get this:
version: PD4ML 380 (eval)
done in 297ms.It does not look like it is even trying to load the fonts. Is this not the correct PDML jar? If not where can I download the correct one and what is it’s name?
Megan
in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 18:55in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 21:24#28841Yes I think you may not have the correct jar in your current pro evaluaion download.
I dropped down pd4ml.pro.trial.380 to evaluate it not the standard one, and used pd4ml_demo.jar and pd4ml_tl_demo.jar are the only jars in that package and I have installed both.
Can you tell me the name and where I can download and evalution on the pro version so I can test that it will handle the fonts for us?
Thanks
in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 21:52in reply to: Css style inheritance January 31, 2012 at 06:42#28809That was a good clarification Viktor. Double selectors are used in our base html and in the first place it was pushed directly to pd4ml and the result wasn’t as expected. By modifying the source html we get the output correct but it would be nice to get support for this π
Br,
Kallein reply to: HTML/CSS rendering issues January 31, 2012 at 08:31#26670Hi,
I have one html file and i am using PD4CMD to convert to PDF but it is generating blank PDF file. There is no exception in debug output. Can you pleasse help on this.
I have attached that input html file.in reply to: Absolute positioning within a padded parent January 31, 2012 at 08:56#28831Ping. Any idea on this, anyone? π
-
AuthorPosts