Forum Replies Created

Viewing 15 posts - 1,231 through 1,245 (of 4,234 total)
  • Author
    Posts
  • in reply to: Dynamic font substitution logic does not work for me?
    #28512

    I am trying with version 370fx2. the following html containing chinese text works .





    常常有不同的方法來寫同樣的漢字,這些被統。有些差異是由於性格的簡化,而有些則是純粹的字形差異,如中風造型。在造型的招用的明朝風格的字體來自康熙字典中使用。在大陸中


    However with Japanese html it does not works




    煙草


    I am getting the following in the logs

    version: PD4ML 370fx2 DMS Pro
    not yet in cache: file:D:/examples/pd4fonts.properties
    ‘serif’ is not in pd4fonts.properties file
    reject TTF lookup for: ‘serif’
    not yet in cache: file:C:/WINDOWS/Fonts/times.ttf
    read ‘times new roman’ from file:C:/WINDOWS/Fonts/times.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/MSMINCHO.TTF
    read ‘ms mincho’ from file:C:/WINDOWS/Fonts/MSMINCHO.TTF
    not yet in cache: file:C:/WINDOWS/Fonts/mingliu.ttc
    read ‘mingliu’ from file:C:/WINDOWS/Fonts/mingliu.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/simsun.ttc
    read ‘simsun’ from file:C:/WINDOWS/Fonts/simsun.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/mangal.ttf
    read ‘mangal’ from file:C:/WINDOWS/Fonts/mangal.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/david.ttf
    read ‘david’ from file:C:/WINDOWS/Fonts/david.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/batang.ttc
    read ‘batang’ from file:C:/WINDOWS/Fonts/batang.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/wingding.ttf
    read ‘wingdings’ from file:C:/WINDOWS/Fonts/wingding.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/symbol.ttf
    read ‘symbol’ from file:C:/WINDOWS/Fonts/symbol.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/lsans.ttf
    read ‘lucida sans regular’ from file:C:/WINDOWS/Fonts/lsans.ttf
    done in 2312ms.
    done.

    Am I missing something here? And one more question, do we need to specify

    each time?

    @PD4ML wrote:

    In order to find an appropriate font to display a text string, PD4ML walks the following lists:
    [language=java:3q87729j]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:3q87729j]

    I guess, in your case an existence of SimSun among available fonts should help.

    in reply to: Troubleshooting
    #26551

    version: PD4ML 370fx2 DMS Pro
    As specified in one of the support forums. I used the following html to be generated to pdf . However the pdf is not correctly generated. I am embedding the fonts available in /windows/fonts . We are already using a PD4ML license and this is a high priority issue .







    欢迎
    歡迎
    Καλοσωρίσατε
    اهلا وسهلا
    Добро пожаловать


    following is the log
    version: PD4ML 370fx2 DMS Pro
    not yet in cache: file:D:/examples/pd4fonts.properties
    ‘serif’ is not in pd4fonts.properties file
    reject TTF lookup for: ‘serif’
    not yet in cache: file:C:/WINDOWS/Fonts/times.ttf
    read ‘times new roman’ from file:C:/WINDOWS/Fonts/times.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/arial.ttf
    read ‘arial’ from file:C:/WINDOWS/Fonts/arial.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/msgothic.ttc
    read ‘ms gothic’ from file:C:/WINDOWS/Fonts/msgothic.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/mingliu.ttc
    read ‘mingliu’ from file:C:/WINDOWS/Fonts/mingliu.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/simsun.ttc
    read ‘simsun’ from file:C:/WINDOWS/Fonts/simsun.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/mangal.ttf
    read ‘mangal’ from file:C:/WINDOWS/Fonts/mangal.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/david.ttf
    read ‘david’ from file:C:/WINDOWS/Fonts/david.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/gulim.ttc
    read ‘gulim’ from file:C:/WINDOWS/Fonts/gulim.ttc
    not yet in cache: file:C:/WINDOWS/Fonts/wingding.ttf
    read ‘wingdings’ from file:C:/WINDOWS/Fonts/wingding.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/symbol.ttf
    read ‘symbol’ from file:C:/WINDOWS/Fonts/symbol.ttf
    not yet in cache: file:C:/WINDOWS/Fonts/lsans.ttf
    read ‘lucida sans regular’ from file:C:/WINDOWS/Fonts/lsans.ttf
    done in 1734ms.
    done.

    Am I missing something here?
    -Binod Garg

    in reply to: png images errors while parsing
    #28478

    hello

    this issue has been hanging for long time . please can i get an answer

    thank you

    in reply to: png images errors while parsing
    #28479

    As we wrote you before, the problem is caused by a corrupted PNG file. The original file seems to be ok, but probably it is damaged on the way to PD4ML. PD4ML only states that during parsing of the image by particular offset if found garbage instead of a numeric value.

    Today we’ll prepare a version with a binary data dump, to check what is actually returned by PNG request. We’ll send you the version by email.

    in reply to: png images errors while parsing
    #28480

    hello

    ok thank you , i will wait for this version . hopefully we will get this ping issue solved after this invistigation .

    thanks alot

    in reply to: General questions / FAQ
    #26552

    Hello support,

    I need to print pdf representing an invoice. I used a big table, each rows represent a product. At the end of the table, I have the summary of the billing, with the total, vat ….

    No problems with the table, and the header when the invoice needs many pages.

    But I need to print a subtotal on the first row of everypage, just below the header or in the header. How can i do that ?

    Regards

    in reply to: Dynamic font substitution logic does not work for me?
    #28513

    @PD4ML wrote:

    In order to find an appropriate font to display a text string, PD4ML walks the following lists:
    [language=java:o60jhw85]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:o60jhw85]

    I guess, in your case an existence of SimSun among available fonts should help.

    Thanks, this was very very helpful – I’d sure go insane without this information!
    However, the paths to fonts and pd4fonts.properties have to be monitored and corrected carefully. Even the http://pd4ml.com/examples.zip I downloaded did not work in Linux nor in Windows. I had to set the absolute paths to files in run.sh, and then it worked. I suppose the person(s) who made the example were working in root directory, or something like that, and that therefore it worked for them.

    Also, setting of the fallback fonts would be great option in the future, but at the moment it can be easily hacked – if you do not want to/cannot use some font from the list above, simply change in pd4fonts.properties the line of some existing font <br /> #this is an autogenerated file. please remove manually any references to copyrighted fonts<br /> #Tue Apr 19 06:51:26 GMT-07:00 2011<br /> # font.dir.location=fonts<br /> KaiTi_GB2312=SIMKAI.TTF
    change KaiTi_GB2312 to some font from the hardcoded list
    #this is an autogenerated file. please remove manually any references to copyrighted fonts<br /> #Tue Apr 19 06:51:26 GMT-07:00 2011<br /> #font.dir.location=fonts<br /> SimSun=SIMKAI.TTF
    and everything will work fine.

    #28514

    Unfortunately PD4ML does not support the feature.

    In order to achieve the needed PDF document structure, you would need to programmatically split the table to smaller ones on HTML level and to force explicit page breaks where needed.

    in reply to: png images errors while parsing
    #28481

    Does it work with the patched version?

    in reply to: Font-size in table cell
    #28430

    The forthcoming release (v371b) should fix the issue.

    in reply to: PDF output does not render images correctly
    #28494

    Hi Team,

    I have tried to increase the pixel size of image. By using below code.

    BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
    img.getRaster().setPixels(0, 0, width, height, pixels);

    But i am not able to crease the pixel size.

    Could you please suggest me on this?

    Thanks,
    Sada. B

    in reply to: HTML/CSS rendering issues
    #26553

    hello

    i am facing a problem with justify css attribute when using arabic . is there a way i can get over it .

    thanks

    in reply to: PDF output does not render images correctly
    #28495

    You cannot increase size of pixels. You may increase image size in pixels.

    For example:
    [language=java:1tmqc50j]width *= 5;
    height *= 5;
    BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
    img.getRaster().setPixels(0, 0, width, height, pixels);[/language:1tmqc50j]

    But, of course, pixels array must have a corresponding image data, match the new dimensions.

    Also, if transparency is not absolutely necessary, I would recommend to use BufferedImage.TYPE_INT_RGB, or even BufferedImage.TYPE_BYTE_INDEXED to reduce resulting PDF document size.

    in reply to: justify is nor working with arabic
    #28515

    hello

    of course i mean when we use html attribute align=’justify’ with arabic characters then the lines are justified with wrong direction as if the language is english not arabic .

    please solve this it should be easy

    in reply to: justify is nor working with arabic
    #28516

    You are right. The last line of a justified RTL block is wrongly aligned. We’ve just fixed the issue in the development build. The fix will be available with the next beta release.

Viewing 15 posts - 1,231 through 1,245 (of 4,234 total)