PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
   

Topic review - TTF embedding
Post subject:  Re: TTF embedding
PegaDev wrote:
If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.

Please help on this.


create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
run pd4font.properties generation command
java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
(as a result it should produce /path/to/my/fonts/pd4font.properties)
reference /path/to/my/fonts/ directory from your Java/JSP/... code.


Here is the original command

java -jar C:\tomcat\webapps\prweb\WEB-INF\lib/pd4ml.jar -configure.fonts C:\tomcat\Fonts
    Post Posted: 12 Jul 2016, 16:02
 
Post subject:  Re: TTF embedding
If I execute the below codes i am getting PDF converter UI. It is not generating pd4fonts.properties and pd4browser.properties.

Please help on this.


create fonts/ directory (i.e /path/to/my/fonts/) and copy needed TTFs into it.
run pd4font.properties generation command
java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/
(as a result it should produce /path/to/my/fonts/pd4font.properties)
reference /path/to/my/fonts/ directory from your Java/JSP/... code.
    Post Posted: 12 Jul 2016, 15:57
 
Post subject:  Re: TTF embedding
By default PD4ML converts to PDF characters, belong to Latin-1 charset only using built-in Adobe fonts (Helvetica, Times New Roman and Courier New). In order to output national or special characters you would need to configure and utilize TTF embedding feature. See:

http://pd4ml.com/reference.htm#7.1
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
    Post Posted: 23 Jun 2014, 10:40
 
Post subject:  Re: TTF embedding
Any solution to display arabic text. I am facing the same problem. The characters are coming as ????. Although in my case the data I am passing through the StringReader as I am receiving the data from a WebService.
    Post Posted: 05 Jun 2014, 07:38
 
Post subject:  Re: TTF embedding
Please publish your updated JSP and a sample of its debug output.
    Post Posted: 17 Sep 2013, 11:42
 
Post subject:  Re: TTF embedding problem in displaying char Arabic
Mohamed Fayek wrote:
i tried this tag but still the problem exist and the Arabic character appear as ?????
    Post Posted: 14 Sep 2013, 08:33
 
Post subject:  Re: TTF embedding problem in displaying char Arabic
i tried this tag but still the problem exist and the Arabic character appear as ?????
    Post Posted: 14 Sep 2013, 07:34
 
Post subject:  Re: TTF embedding
Try to change <pd4ml:usettf> tag to
<pd4ml:usettf from="java:fonts"/>
    Post Posted: 12 Sep 2013, 13:49
 
Post subject:  Re: TTF embedding problem in Arabic char
Note:
i used this JAR with 3 fonts for serif, sansserif and monospaced types
http://pd4ml.com/i/easyfonts/fonts.jar (~2MB)

in webinf/lib
    Post Posted: 12 Sep 2013, 07:46
 
Post subject:  Re: TTF embedding the log output of the problem
13/09/13 04:19:59 version: PD4ML 381fx1 Pro DMS
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/reset.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/reset.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/reset.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/reset.css
13/09/13 04:19:59 RequestDispatcher.include() returned 6721 bytes: html, body, div, span, applet, object, i
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/template.css?<?=time()?>
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/template.css?<?=time()?>
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/template.css?<?=time()?>
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/template.css?<?=time()?>
13/09/13 04:19:59 RequestDispatcher.include() returned 62208 bytes: body {
text-align: center;
mar
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/black.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/black.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/black.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/black.css
13/09/13 04:19:59 RequestDispatcher.include() returned 3364 bytes: body.black #outer_wrapper {
backgro
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/calender.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/calender.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/calender.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/calender.css
13/09/13 04:19:59 RequestDispatcher.include() returned 1908 bytes: .calender {
width: 220px;
/*he
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/ui.selectmenu.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/ui.selectmenu.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/ui.selectmenu.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/ui.selectmenu.css
13/09/13 04:19:59 RequestDispatcher.include() returned 2008 bytes: /* Selectmenu
-------------------------
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/jquery-ui-1.8.6.custom.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/jquery-ui-1.8.6.custom.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/jquery-ui-1.8.6.custom.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/jquery-ui-1.8.6.custom.css
13/09/13 04:19:59 RequestDispatcher.include() returned 18640 bytes: .ui-helper-hidden { display: none; }
.u
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/datePicker.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/datePicker.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/datePicker.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/datePicker.css
13/09/13 04:19:59 RequestDispatcher.include() returned 2724 bytes:

table.jCalendar {
border: 1px soli
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 RequestDispatcher.include() returned 858 bytes: .ac_results {
padding: 0px;
border:
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 RequestDispatcher.include() returned 858 bytes: .ac_results {
padding: 0px;
border:
13/09/13 04:19:59 looping inclusions found: file:/dp/jsps/css_ar/jquery.autocomplete.css
13/09/13 04:19:59 loading CSS file file:/dp/jsps/css_ar/keyboard.css
13/09/13 04:19:59 not yet in cache: file:/dp/jsps/css_ar/keyboard.css
13/09/13 04:19:59 Loading via HTTP Request dispatcher: /dp/jsps/css_ar/keyboard.css
13/09/13 04:19:59 Using URL without web application name: /jsps/css_ar/keyboard.css
13/09/13 04:19:59 RequestDispatcher.include() returned 7223 bytes: #keyboardInputMaster {
position:absol
13/09/13 04:20:00 image not yet in cache: file:D:/isoft/projects/DPINT/src/web-online/public_html/
13/09/13 04:20:00 image size: 7242
13/09/13 04:20:00 image size: 7242
13/09/13 04:20:00 image type of file:D:/isoft/projects/DPINT/src/web-online/public_html/ is unknown/unsupported.
13/09/13 04:20:00 can not load image: ../
13/09/13 04:20:00 image not yet in cache: file:D:/isoft/projects/DPINT/src/web-online/public_html/Images/Button_default_hover.gif
13/09/13 04:20:00 image file:D:/isoft/projects/DPINT/src/web-online/public_html/Images/Button_default_hover.gif has zero length.
13/09/13 04:20:00 can not load image: file:D:/isoft/projects/DPINT/src/web-online/public_html/Images/Button_default_hover.gif
13/09/13 04:20:00 done in 1072ms.
    Post Posted: 12 Sep 2013, 07:23
 


cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share