Forum Replies Created

Viewing 15 posts - 3,136 through 3,150 (of 4,234 total)
  • Author
    Posts
  • in reply to: Problem reading font data
    #29855

    @Beth Barr wrote:

    Hello,

    I am using pro version 370 of pd4ml . It is giving me error . None of the fonts are getting reflected. The error says “Problem reading font data” . The error log is as shown below.

    C:FontEpic
    version: PD4ML 370 Pro
    not yet in cache: file:C:FontEpic/pd4fonts.properties
    not yet in cache: file:C:WinFonts/gothic.ttf
    can not read ‘century gothic’ from file:C:WinFonts/gothic.ttf: Problem reading
    font data.
    reject TTF lookup for: ‘century gothic’
    not yet in cache: file:C:WinFonts/calibri.ttf
    can not read ‘calibri’ from file:C:WinFonts/calibri.ttf: Problem reading font data.
    reject TTF lookup for: ‘calibri’
    not yet in cache: file:C:WinFonts/pala.ttf
    can not read ‘palatino linotype’ from file:C:WinFonts/pala.ttf: Problem reading
    font data.
    reject TTF lookup for: ‘palatino linotype’
    not yet in cache: file:C:WinFonts/times.ttf
    can not read ‘times new roman’ from file:C:WinFonts/times.ttf: Problem reading
    font data.
    reject TTF lookup for: ‘times new roman’
    not yet in cache: file:C:WinFonts/impact.ttf
    can not read ‘impact’ from file:C:WinFonts/impact.ttf: Problem reading font data.
    reject TTF lookup for: ‘impact’
    not yet in cache: file:C:WinFonts/tahoma.ttf
    can not read ‘tahoma’ from file:C:WinFonts/tahoma.ttf: Problem reading font data.
    reject TTF lookup for: ‘tahoma’
    ‘helvetica’ is not in pd4fonts.properties file
    reject TTF lookup for: ‘helvetica’
    not yet in cache: file:C:WinFonts/l_10646.ttf
    can not read ‘lucida sans unicode’ from file:C:WinFonts/l_10646.ttf: Problem re
    ading font data.
    reject TTF lookup for: ‘lucida sans unicode’
    not yet in cache: file:C:WinFonts/lucon.ttf
    can not read ‘lucida console’ from file:C:WinFonts/lucon.ttf: Problem reading f
    ont data.
    reject TTF lookup for: ‘lucida console’
    not yet in cache: file:C:WinFonts/arial.ttf
    can not read ‘arial’ from file:C:WinFonts/arial.ttf: Problem reading font data.

    reject TTF lookup for: ‘arial’
    not yet in cache: file:C:WinFonts/ariblk.ttf
    can not read ‘arial black’ from file:C:WinFonts/ariblk.ttf: Problem reading fon
    t data.
    reject TTF lookup for: ‘arial black’
    not yet in cache: file:C:WinFonts/arial-narrow_[allfont.net].ttf
    can not read ‘arial narrow’ from file:C:WinFonts/arial-narrow_[allfont.net].ttf
    : Problem reading font data.
    reject TTF lookup for: ‘arial narrow’
    ‘serif’ is not in pd4fonts.properties file
    reject TTF lookup for: ‘serif’
    not yet in cache: file:C:WinFonts/verdana.ttf
    can not read ‘verdana’ from file:C:WinFonts/verdana.ttf: Problem reading font data.
    reject TTF lookup for: ‘verdana’
    not yet in cache: file:C:WinFonts/COPRGTL.TTF
    can not read ‘copperplate gothic light’ from file:C:WinFonts/COPRGTL.TTF: Problem reading font data.
    reject TTF lookup for: ‘copperplate gothic light’
    not yet in cache: file:C:WinFonts/33535gillsansmt.ttf
    can not read ‘gill sans mt’ from file:C:WinFonts/33535gillsansmt.ttf: Problem
    reading font data.
    reject TTF lookup for: ‘gill sans mt’
    not yet in cache: file:C:WinFonts/trebuc.ttf
    can not read ‘trebuchet ms’ from file:C:WinFonts/trebuc.ttf: Problem reading font data.
    reject TTF lookup for: ‘trebuchet ms’
    not yet in cache: file:C:WinFonts/cour.ttf
    can not read ‘courier new’ from file:C:WinFonts/cour.ttf: Problem reading font
    data.
    reject TTF lookup for: ‘courier new’
    not yet in cache: file:C:WinFonts/georgia.ttf
    can not read ‘georgia’ from file:C:WinFonts/georgia.ttf: Problem reading font
    data.
    reject TTF lookup for: ‘georgia’

    in reply to: HTML/CSS rendering issues
    #27059

    We are using PD4ML(Java ) to render HTML as PDF using XSLT. IDAutomation font is installed on Windows, and specified in the XSLT, yet this is not getting rendered as bar code on PDF but simplay as text. PD4MLPro is used. Does anything need to be done to support IDAutomation font ?

    in reply to: System Error: Stack Underflow
    #29483

    Hi,

    I still see this issue after upgrading to the latest version.

    Looks like the issue is introduced after 3.9.5 version. I downgraded PD4ML version to 3.9.5 to get rid of this error.

    Can you please check if anything newly added or changed after 3.9.5 had introduced this issue?

    Regards,
    Mani.

    in reply to: System Error: Stack Underflow
    #29484

    Yes, it has been significantly changed: we switched from open source CSS Parser Project library to our own CSS parser/cascading engine. Obviously the issue is there.

    [language=java:1go4b2xd][2015-11-02 16:46:17,947] java.lang.RuntimeException: stack underflow
    at org.zefer.css.y.Ã’00000(Unknown Source)
    at org.zefer.css.yb.o00000(Unknown Source)
    at org.zefer.css.f.Ã’00000(Unknown Source)
    at org.zefer.html.doc.css.c.Ã’0O000(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 org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)[/language:1go4b2xd]

    Even if the issue not in the new CSS parser, there is a lot of adjustments in the main converter code.

    An HTML code sample (incl. its CSS resources) which 100% throws an exception on your site would help a lot to determine a problem reason.

    (I am afraid, the blank HTML is not the right sample – the exception is thrown by CSS parsing and the HTML does not refer to any CSS resources)

    in reply to: HTML/CSS rendering issues
    #27060

    Hello together,

    i want to resize a bigger background-image. is there any way without background-size?

    <table border="0" cellspacing="0" cellpadding="0" style="width:21cm;margin:0;padding:0"><br /> <tr><br /> <td class="background" style="padding-top:1.3cm;padding-left:1.3cm;vertical-align:top;height:8.1cm;width:21cm"><table width="100%" border="0" cellspacing="0" cellpadding="0"><br /> <tr><br /> <td><img src="logo.png" style="width:3.5cm" /></td><br /> </tr><br /> <tr><br /> <td style="padding-top:1cm;vertical-align:top;font-family:Arial,Helvetica,sans-serif;font-size:0.7cm;line-height:0.9cm;color:#ffffff;text-align:left;text-transform:uppercase">Calculator Result</td><br /> </tr><br /> </table></td><br /> </tr><br /> </table>

    CSS
    .background<br /> {<br /> position: inherit;<br /> left: 0;<br /> top: 0;<br /> z-index: 0;<br /> background-color: #fff;<br /> background-image: url(header.jpg) no-repeat center center;<br /> width: 21cm;<br /> height: 8.1cm;<br /> }

    Thank you!
    Greetings Stefan

    in reply to: background-image resize
    #29856

    PD4ML supports some proprietary CSS properties for the case:

    background-repeat: scale-x
    background-repeat: scale-y
    background-repeat: scale-xy

    They intended to shrink/stretch a background image to fit a containing block element.

    in reply to: General questions / FAQ
    #27061

    Hello,

    I have a JSP using PD4ML and everything works fine except the following line of code:

    in reply to: background-image resize
    #29857

    Thank you!

    in reply to: Troubleshooting
    #27062

    When i try to use JSP and Adding other languages.I can’t set UTF-8 Encoding in JSP , I can’t read Tahoma (Thai languages) ,And Servlet can’t open PDF ,
    our problem , if i will buy pd4ml PRO , it’s work better and solve this problem right ?

    in reply to: Pd4ml Pro UTF-8 and Adding TTF
    #29859

    If you open tahoma.ttf in any of font viewer tools (i.e Cahacter Map on Win platform), you can see it does not define Thai glyphs.

    For code like กกก PD4ML (as any web browser) looks for a similar font substitution, which can render Thai.

    Below are substitution tables used by PD4ML. As far as I know Microsoft Sans Serif (micross.ttf) supports Thai.
    You need to register Microsoft Sans Serif under any of names from sansFallback to let the font substitutions happen.

    For example, define in pd4fonts.properties
    Arial=micross.ttf

    [language=java:2n43dq0p]private static String[] serifFallback = new String[] {
    “Times New Roman”,
    “MS Mincho”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Batang”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] sansFallback = new String[] {
    “Arial”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “Gulim”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };

    private static String[] monoFallback = new String[] {
    “Courier New”,
    “MS Gothic”,
    “MingLiU”,
    “SimSun”,
    “Mangal”,
    “David”,
    “GulimChe”,
    “Wingdings”,
    “Symbol”,
    “Lucida Sans Regular”,
    };[/language:2n43dq0p]

    in reply to: PD4ML Tips & Tricks
    #27063

    We are in the process of migrating our pdf generation service from Java to a .NET based platform (We owned the Java license and recently bought the .NET one). Unfortunately, we are noticing a huge difference in performance when rendering the same html page to pdf. Basically, it’s taking over ten times more to render in .NET, which makes the service unusable as it’s used to create pdfs for clients in real time.

    What we specifically ask from you:
    – Could you tell us what could be causing the issue? We have a set date we need to have this migrated and there’s no way we can use the .NET service as it’s running now.
    – Could it be a version issue? From the version number we can see the the .NET version appears to be much older which could be causing the performance issues. Is the .NET version still being maintained?
    – Do you have by any chance a new unreleased/beta version of the .NET port that we can use to test if there’s any improvement?

    in reply to: PDF page headers/footers definition options
    #27290

    Okay that looks like a bigger problem then estimated.

    I have the same issue too.

    I generate a complete header and footer.

    Footer:
    <pd4ml:page.footer scope="1"><br /> <div style="background-color:red;"><br /> <p style="" class="" id=""><br><br><br><br><br><br><br><br><br><br><br><br><br> </p><br /> <table align="center"><br /> <tbody><br /> <tr><br /> <td>Inhaber:</td><br /> <td></td><br /> <td></td><br /> <td></td><br /> </tr><br /> <tr><br /> <td></td><br /> <td>Max Mustermann</td><br /> <td>Straße 1</td><br /> <td>Undso weiter</td><br /> </tr><br /> </tbody><br /> </table><br /> <p></p><br /> </div><br /> </pd4ml:page.footer>

    The footer is their (yeah) BUT! 🙁 I can only see Inhaber at the bottom of the page and also head footer is VERY high. I mean 1/2 of A4

    On the other hand, the header is shown very accurate.

    The complete html code here:
    <pd4ml:page.header scope="1"><br /> <div style="width:100%;background-color:yellow;"><br /> <div><br /> <img class="" id="" style="width:100mm;max-width:100mm;margin-left:10cm;" src="data:image/*;base64,...."><br /> <p></p><br /> </div><br /> </div><br /> </pd4ml:page.header><pd4ml:page.footer scope="1"><br /> <div style="background-color:red;"><br /> <p style="" class="" id=""><br><br><br><br><br><br><br><br><br><br><br><br><br> </p><br /> <table align="center"><br /> <tbody><br /> <tr><br /> <td>Inhaber:</td><br /> <td></td><br /> <td></td><br /> <td></td><br /> </tr><br /> <tr><br /> <td></td><br /> <td>Max Mustermann</td><br /> <td>Straße 1</td><br /> <td>Undso weiter</td><br /> </tr><br /> </tbody><br /> </table><br /> <p></p><br /> </div><br /> </pd4ml:page.footer><html><br /> <head><br /> <title>Footer</title><br /> <style>.designChapter_1{}#chapter_-3343589119799051750{}.designChapter_1{}#chapter_-7878110909822710151{}</style><br /> </head><br /> <body><br /> <div class="" style=""><br /> <div class="" id="container_-6790600175644917974" style="width:10.5cm;margin-left:2cm;height:5mm;border:1px solid orange;font-size:7pt;"><br /> <p style="" class="" id="">Intelligy Science UG | Am Neumarkt 30 | 22041 Hamburg</p><br /> </div><br /> <div class="" id="container_-7299820427654925394" style="width:10.5cm;height:12.7mm;border:1px solid red;margin-left:2cm;float:left;"></div><br /> <div class="" id="container_-5695738824325508680" style="width:10.5cm;margin-left:2cm;height:27.3mm;border:1px solid blue;float:left;font-size:10pt;"><br /> <p style="" class="" id="">#kontaktFirma#<br>#kontaktVorname# #kontaktNachname#<br>#kontaktStraße# #kontaktHausnummer#<br><br>#kontaktPLZ# #kontaktOrt#</p><br /> </div><br /> <div class="" id="container_-5799771009836692084" style="border:1px solid green;margin-left:12.5cm;margin-right:1cm;font-size:9pt;text-align:left;width:20cm;float:left;margin-top:-4cm;height:-1cm;"><br /> <p style="" class="" id="">Intelligy Science<br>Straße<br>22041 Hamburg<br><br>Telefon: <br>Fax: <br><br>E-Mail: <br>Web: </p><br /> </div><br /> <div class="" id="container_-109430433127867131" style="clear:both;"></div><br /> <div class="" id="container_-4697751580106713612" style="width:7.5cm;margin-left:2cm;border:1px solid magenta;margin-top:2.5cm;height:3.5cm;"></div><br /> <div class="" id="container_-8586357502960676866" style="width:12.5cm;border:1px solid yellow;margin-left:7.5cm;margin-top:2.5cm;height:3.5cm;"></div><br /> </div><br /> <div class="designChapter_1" style=""></div><br /> <div class="designChapter_1" style=""></div><br /> </body><br /> </html>

    The version I am using is 3.9.8fx3 Pro

    Any Idea?

    in reply to: PDF page headers/footers definition options
    #27291

    Sorry I think I found MY mistake

    in reply to: Mangal font support
    #29639

    Hi,

    I am also facing issues related to rendering hindi text in PDF .
    PFB the code snippet : htmlString is some hindi text
    It generates some other fonts or ?? in the PDF.
    ByteArrayOutputStream out = new ByteArrayOutputStream(10240);
    StringReader isr = new StringReader(htmlString);
    pd4ml.render(isr, out, new URL(urlBase), IEncoding.STRING_ENCODING);

    Could you please let me know the configuration needed for the same.
    Regards,
    Ranjana sinha

    in reply to: Mangal font support
    #29638

    @abhitriv wrote:

    I am trying to convert hindi html into pdf using code

    pd4ml.useTTF(“java:font”, true);
    pd4ml.setDefaultTTFs(“Mangal”, “Times New Roman”, “Arial”);
    pd4ml.render(url, fos);

    But my input is : क्रम संख्या
    and output is : करम सखया

    Please help

    Hi,

    Could you please share more configuration details. With my code it is not able to comprehend hindi font at all.

    Regards,
    Ranjana Sinha

Viewing 15 posts - 3,136 through 3,150 (of 4,234 total)