Forum Replies Created

Viewing 15 posts - 571 through 585 (of 4,249 total)
  • Author
    Posts
  • in reply to: cache parsed CSS?
    #27984

    Actually PD4ML caches CSS documents in parsed form, but, you are right, it does not cache CSS documents failed to parse. I’ve added the feature request to our TODO list.

    I do not believe you use CSS stylesheets, greater than 1 Mb in size. Otherwise it should not tangible impact HTML-to-PDF conversion performance.

    Well, the best solution would be to support the notorious “filter:” properties – we need to check the actual state of CSS Parser project and adapt our library to it (if it already supports the syntax).

    in reply to: General questions / FAQ
    #26379

    Hi,

    I need some help regarding special character in pd4ml. I’m using pd4ml free version. There I have a text in database as δ

    I want to see the delta character in pd4ml pdf. Though in html page I got it delta character, in pdf of pd4ml this shows ? character.
    I need a solution. I don’t know why this is occurs. Please suggest me how can I fixed this issue and show the delta character in pdf.

    Best regards

    Ifti

    in reply to: cache parsed CSS?
    #27985

    @PD4ML wrote:

    I do not believe you use CSS stylesheets, greater than 1 Mb in size. Otherwise it should not tangible impact HTML-to-PDF conversion performance.

    No, it’s ‘only’ about 120kb in size. Which is huge, but i cant change that.

    @PD4ML wrote:

    the best solution would be to support the notorious “filter:” properties

    That’d be awesome. We have to rely on that property to support IE6…

    Thanks for your efforts!

    in reply to: cache parsed CSS?
    #27986

    sorry for my logged-out reply…
    Well after some more discussion in our dev-team we may have an idea for a workaround.
    http://pd4ml.com/support/pdf-generation-troubleshooting-f4/prevent-images-being-scaled-t38.html
    Here it’s said, that “PD4ML ignores print CSS media type and respects only stylesheets defined for all, screen and proprietary pdf media types.”.
    So, if we find out what is meant by “proprietary pdf media type”, we could redefine the css-classes that use the “filter:” property in the appropriate media-type *not* to use the “filter:” property, and pd4ml should ignore the property.

    Right?
    Edit: –> Wrong: @media pdf {} would give the semantical possibility to override stuff, but the parser goes through all css, of course…

    in reply to: PD4ML Tips & Tricks
    #26380

    Hi,

    I need some help regarding special character in pd4ml. I’m using pd4ml free version. There I have a text in database as δ

    I want to see the delta character in pd4ml pdf. Though in html page I got it delta character, in pdf of pd4ml this shows ? character.
    I need a solution. I don’t know why this is occurs. Please suggest me how can I fixed this issue and show the delta character in pdf.

    Best regards

    Ifti

    in reply to: cache parsed CSS?
    #27987

    @media pdf {} is going to be interpreted only by PD4ML. So if you place the section after common CSS definitions, you may override them with PD4ML-specific ones.

    Of course it does not help to solve “filter:” issue. In theory you may screen some CSS style sections (and avoid the parsing errors) under media types, not known to or ignored by PD4ML: tv, print, projection, handheld etc. But it is difficult to say if the major browsers ignore or interpret them.

    in reply to: Fieldset Legend + Bold
    #27908

    We are going to publish the freshest v360fx1b2 26-27 of April.

    in reply to: HTML/CSS rendering issues
    #26381

    I cannot get my generated PDF file to have two columns like my HTML does.

    I have tried setting the HtmlWidth and PageSize, but those just seem to make the pdf page bigger, but it still wants to put the text column under the image instead of next to it.

    Here is a snip of my code:

    os = new java.io.FileOutputStream(file);

    PD4ML pdf = new PD4ML();
    pdf.setPageSize( new Dimension(1024, 1024));
    pdf.setPageInsets( new Insets(0, 0, 0, 0) );
    pdf.setHtmlWidth( 1024 );
    pdf.adjustHtmlWidth();
    pdf.enableImgSplit( false );
    pdf.render( new StringReader(html), os );
    os.close();

    I have tried leaving out the call to adjustHtmlWidth and even making the Html and PageSize really large. No dice.

    Any help?

    in reply to: Incorrect layout in generated PDF
    #27993

    The width of the nesting DIV is not sufficient for 2 columns.
    I changed the width from 612 to 624 and it produced a 2 columns layout.

    [language=css:2p1m9ped]#clientBrowserMainEntity {
    float:left;
    width:624px;
    margin: 0 0 10px 5px; }[/language:2p1m9ped]

    in reply to: HTML/CSS rendering issues
    #26382

    Hi,

    i currently testing the professional version of PD4ML for my company.
    It seems to me that the rendered text is a little bit fuzzy.

    I attached two PDF screenshots with simple text, the first PDF is generated with PD4ML and the second with MS Word and a PDF-Printing-Driver.

    I have configured PD4ML to use the original windows Fonts and used
    pd4ml.useTTF(“C:/windows/Fonts”, true); in my code.

    Is there any way to increase the font quality?

    in reply to: Font rendering quality
    #27995

    Does your PDF contain any images?

    As we learned Adobe Acroread uses different page rendering algorithms depending if a page has images with soft masks (alpha channels) or does not. For some strange reasons if a page has such image, the font glyphs on the page appear with rough edges (it does not impact print output – it is only a problem of screen view).

    in reply to: Font rendering quality
    #27996

    Thanks for the quick response,

    your right, there was a PNG image in the header. When i remove the image the text looks fine. It looks also normal with an JPG image.

    Is there a way to affect the rendering algorithm or some other way that the text looks better with that kind of images?

    in reply to: Font rendering quality
    #27997

    We spend quite a lot of time to find a workaround – unfortunately no success.

    I could only recommend you to replace such translucent PNGs with transparent PNGs (have bit transparency mask instead of alpha channels), or GIFs or JPEGs.

    If you have tons of images to convert, you may add on-a-fly image converter as a custom resource loader:
    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html
    utilizing, for example, JAI library.

    in reply to: HTML/CSS rendering issues
    #26383

    Hi!

    I bought pro version license, it’s great, but we have a problem rendering a lot of images.

    We are generating pdf using a LaTex Render engine: http://latex.codecogs.com/

    But with this engine the path of rendered images is something like http://latex.codecogs.com/gif.latex?300dpi tiny sum.

    When I open the html file to send to pd4ml with the browser all images work.

    But after render in pdf in the place of LaTek images I see an error message “Blank Equation”, it’s the same error you can read accessing directly to http://latex.codecogs.com/gif.latex?300dpi .

    So I think the problems are spaces in images url.

    How can I solve it?

    Thanks

    Mk

    p.s. I find the same problem using this url: http://latex.codecogs.com/gif.latex?%5C300dpi%20%5Ctiny%20%5Csum , whereas the html version is perfect!

    in reply to: image path error
    #27999

    It seems the easiest solution would be to suppress the spaces:

    http://latex.codecogs.com/gif.latex?300dpitinysum

Viewing 15 posts - 571 through 585 (of 4,249 total)