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:  problem of arabic ????? (this my jsp file)
<%--
this my code in the Jsp File
--%>


<%@ taglib uri="/webapp/eps_lib.tld" prefix="eps_taglib"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/internet.tld" prefix="internet"%>
<%@ taglib uri="/WEB-INF/pd4ml.tld" prefix="pd4ml"%>

<%@page contentType="text/html;charset=ISO8859_1"%>


<pd4ml:transform screenWidth="400"
pageFormat="A5"
pageOrientation="landscape"
debug="true"
pageInsets="100,100,100,100,points" >



<pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/>
<pd4ml:usettf from="C:/fonts"/>




<%@ page import="ae.gov.dphq.internet.util.*,oracle.jbo.ViewObject,oracle.jbo.Row,java.util.*,java.util.Enumeration"%>
<%@ page import="ae.gov.dphq.internet.util.*,idealsoft.com.util.IntProfile" %>
<%@ page import="java.util.*"%>
<%@ page import="ae.internet.util.BeanUtils"%>
<%@ page import="ae.internet.util.web.WebUtilities"%>

<c:set var="cssUrl" scope="request" >${pageContext.servletContext.contextPath}/jsps/css_<%=WebUtilities.getUserLocale(request).getLanguage().toLowerCase()%>/</c:set>
<c:set var="jsUrl" scope="request" >${pageContext.servletContext.contextPath}/jsps/js_<%=WebUtilities.getUserLocale(request).getLanguage().toLowerCase()%>/</c:set>
<c:set var="imagesUrl" scope="request" >${pageContext.servletContext.contextPath}/jsps/images_<%=WebUtilities.getUserLocale(request).getLanguage().toLowerCase()%>/</c:set>
<c:set var="comonJsUrl" scope="request" >${pageContext.servletContext.contextPath}/jsps/js/</c:set>


<%
String folderName = "images3";

// Update current user locale
ae.internet.util.web.WebUtilities.setUserLocale(request, new java.util.Locale("ar"));

ae.internet.security.dto.UserProfileDTO userProfile
= ae.internet.util.web.WebUtilities.getUserProfile(request);
String search = request.getParameter("search");
String printPage = request.getParameter("printPage");
boolean epsInquery = search != null && search.equals("true");
boolean isPrint = printPage != null && printPage.equals("true");
Integer pageNo = BeanUtils.getInteger(request.getParameter("pageNo"));
if(pageNo == null) {
pageNo = -1;
}
String applicationNo = request.getParameter("applicationNo");
Integer applicationStatus = BeanUtils.getInteger(request.getParameter("applicationStatus"));
String applicationDateTo = request.getParameter("applicationDateTo");
String applicationDateFrom = request.getParameter("applicationDateFrom");

%>
<%@ include file="/include/js_layout_functions.jsp" %>
<%@ include file="/include/js_layout_messages.jsp"%>

<%@ include file="/include/path.jsp"%>


<html xmlns="http://www.w3.org/1999/xhtml" lang="ar" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="stylesheet" href="${cssUrl}reset.css" />
<link rel="stylesheet" href="${cssUrl}template.css?<?=time()?>" />
<link rel="stylesheet" href="${cssUrl}black.css" />
<link rel="stylesheet" href="${cssUrl}calender.css" />
<link rel="stylesheet" href="${cssUrl}ui.selectmenu.css" />
<link rel="stylesheet" href="${cssUrl}jquery-ui-1.8.6.custom.css" />
<link rel="stylesheet" href="${cssUrl}datePicker.css" />
<link rel="stylesheet" href="${cssUrl}jquery.autocomplete.css" />
<link rel="stylesheet" href="${cssUrl}jquery.autocomplete.css" />
<!--[if IE 7]>
<link rel="stylesheet" href="${cssUrl}ie7.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="${cssUrl}keyboard.css"/>
<!--[if IE 6]>
<link href="${cssUrl}png_ie6.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${cssUrl}template_ie6.css" />
<script language="javascript" type="text/javascript" src="${jsUrl}pngbgfix.js"></script>
<![endif]-->
<!--<link rel="stylesheet" href="${cssUrl}subpage.css" />-->
<script type="text/javascript">
// Please Don't Remove This As It Needed For Flash Player To Operate.
var imagesPath = "${imagesUrl}";
var contextPath = "${pageContext.servletContext.contextPath}/";
</script>
<script type="text/javascript" src="${jsUrl}jquery.min.js"></script>
<script type="text/javascript" src="${jsUrl}date.js"></script>
<script type="text/javascript" src="${jsUrl}jquery.datePicker.js"></script>
<script type="text/javascript" src="${jsUrl}jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="${jsUrl}calendar/calendar.js"></script>
<script type="text/javascript" src="${jsUrl}calendar/calendar-en.js"></script>
<script type="text/javascript" src="${jsUrl}jquery-ui-1.8.6.custom.min.js"></script>
<script type="text/javascript" src="${jsUrl}ui.selectmenu.js"></script>
<script type="text/javascript" src="${jsUrl}keyboard.js"></script>
<script type="text/javascript" src="${comonJsUrl}common.js"></script>
<script type="text/javascript" src="${jsUrl}script.js"></script>
<script type="text/javascript" src="${jsUrl}subpage.js"></script>
<script type="text/javascript" >
function goToHomePage() {
window.parent.location="${pageContext.servletContext.contextPath}/jsps/home.do";
}
function doEpsInquire(resetPageNo, searchButton) {
document.epsIntegrationForm.submit();
}
function fixColorChange() {
var colorTheme = getCookie("colorTheme");
if(!$(".photos_paging_div").hasClass(colorTheme)) {
$(".photos_paging_div").removeClass("blue")
.removeClass("red").removeClass("gold")
.removeClass("black").addClass(colorTheme);
}
}
$(parent.document).find(".boxes").click(function() {
fixColorChange();
});
</script>
<style>
.photos_paging_div {
float: right;
width: 600px;
height: 25px;
/*margin: 0px 9px 0px 0px;*/
font-family: arial;
font-size: 15px;
margin: 0 100px 0 100px;
}
.photos_paging_arrows {
float: right;
width: 29px;
height: 25px;
}
.photos_paging_back {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_right_red.png) no-repeat;
}
.photos_paging_next {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_left_red.png) no-repeat;
}
.photos_paging_numbers {
float: right;
width: 13px;
height: 25px;
text-align: center;
font-weight: bold;
color: rgb(149, 149, 149);
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_red.gif);
background-repeat: repeat-x;
padding: 5px 0px 0px 0px;
}
.photos_paging_numberson {
float: right;
width: 13px;
height: 25px;
text-align: center;
font-weight: bold;
color: rgb(149, 149, 149);
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_red.gif);
background-repeat: repeat-x;
padding: 5px 0px 0px 0px;
}
.photos_paging_numberson a {
display: block;
text-decoration: none;
color: white;
}
.blue .photos_paging_back {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_right_blue.png) no-repeat;
}
.blue .photos_paging_next {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_left_blue.png) no-repeat;
}
.blue .photos_paging_numbers {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_blue.gif) repeat-x;
}
.blue .photos_paging_numberson {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_blue.gif) repeat-x;
}
.gold .photos_paging_back {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_right_gold.png) no-repeat;
}
.gold .photos_paging_next {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_left_gold.png) no-repeat;
}
.gold .photos_paging_numbers {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_gold.gif) repeat-x;
}
.gold .photos_paging_numberson {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_gold.gif) repeat-x;
}
.black .photos_paging_back {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_left_black.png) no-repeat;
}
.black .photos_paging_next {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_right_black.png) no-repeat;
}
.black .photos_paging_numbers {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_black.gif) repeat-x;
}
.black .photos_paging_numberson {
background: url(<%=request.getContextPath()%>/jsps/images_ar/subpage/photos_paging_bg_black.gif) repeat-x;
}
</style>
</head>
<body style="height:100%">
<div id="epsDivId">
<table dir="rtl" width="100%" class="main_bg" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" ><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" class="header-line"><img name="spacer" src="../" width="1" height="1" alt=""></td><%-- <img name="spacer" src="../" width="1" height="1" alt="">--%>
</tr>
<tr><td>
<%


try {

String eps_id = request.getParameter("eps_id");
if(userProfile != null) {
if(userProfile.getPersonId() != null &&
!userProfile.getPersonId().equals(new Long(-1))) {
if(epsInquery) {
%>
<eps_taglib:search userName="internet" local="AR" personID="<%=userProfile.getPersonId()%>" userIp="<%=request.getRemoteAddr()%>" pageNo="<%=pageNo%>" applicationNo="<%=applicationNo%>" applicationStatus="<%=applicationStatus%>" applicationDateFrom="<%=applicationDateFrom%>" applicationDateTo="<%=applicationDateTo%>" />
</br>
<% } else { %>
<eps_taglib:form name="Test" userName="intranet"
applicationId="<%=eps_id%>"
local="AR"
personID="<%=userProfile.getPersonId()%>"
url="/submitServlet"
siteSessionId="<%=session.getId()%>"
userIp="<%=request.getRemoteAddr()%>" />
<% } %>
<%
} else if(userProfile.getOrganizationId() != null &&
!userProfile.getOrganizationId().equals(new Long(-1))) {
if(epsInquery) {
%>
<eps_taglib:search userName="internet" local="AR" organizationID="<%=userProfile.getOrganizationId()%>" userIp="<%=request.getRemoteAddr()%>" pageNo="<%=pageNo%>" applicationNo="<%=applicationNo%>" applicationStatus="<%=applicationStatus%>" applicationDateFrom="<%=applicationDateFrom%>" applicationDateTo="<%=applicationDateTo%>"/>
</br>
<% } else { %>
<eps_taglib:form name="Test" userName="intranet"
applicationId="<%=eps_id%>"
local="AR"
organizationID="<%=userProfile.getOrganizationId()%>"
url="/submitServlet"
siteSessionId="<%=session.getId()%>"
userIp="<%=request.getRemoteAddr()%>" />
<% } %>
<%
} else if(userProfile.getEmployeeId() != null &&
!userProfile.getEmployeeId().equals(new Long(-1))) {
if(epsInquery) {
%>

<eps_taglib:search userName="internet" local="AR" employeeID="<%=userProfile.getEmployeeId()%>" userIp="<%=request.getRemoteAddr()%>" pageNo="<%=pageNo%>" applicationNo="<%=applicationNo%>" applicationStatus="<%=applicationStatus%>" applicationDateFrom="<%=applicationDateFrom%>" applicationDateTo="<%=applicationDateTo%>"/>
</br>
<% } else { %>
<eps_taglib:form name="Test" userName="intranet"
applicationId="<%=eps_id%>"
local="AR"
employeeID="<%=userProfile.getEmployeeId()%>"
url="/submitServlet"
siteSessionId="<%=session.getId()%>"
userIp="<%=request.getRemoteAddr()%>" />
<% } %>
<%
} else {
if(!epsInquery) {
%>
<eps_taglib:form name="Test" userName="intranet"
applicationId="<%=eps_id%>"
local="AR"
url="/submitServlet"
siteSessionId="<%=session.getId()%>"
userIp="<%=request.getRemoteAddr()%>" />
<% } %>
<%
}
if(epsInquery) {
%>

<form name="epsIntegrationForm" action="<%=request.getContextPath()%>/eps_frame.jsp">
<input type="hidden" name="search" value="<%=search != null ? search : ""%>"/>
<input type="hidden" name="printPage" value="<%=printPage != null ? printPage : ""%>"/>
<input type="hidden" name="pageNo" value="<%=pageNo%>"/>
<input type="hidden" name="eps_id" value="<%=eps_id != null ? eps_id : ""%>"/>
<internet:pagination name="epsSearchResult" submitFunc="doEpsInquire" form="epsIntegrationForm"/>
<script>
fixColorChange();
</script>
</form>
<%
}
}
} catch(Throwable th) {
throw th;
}
%>
</td>
</tr>

</table>
</td>
</tr>
</table>
<div>
</body>
</html>

</pd4ml:transform>


<script>
function getComputedHeight(theElt) {
var browserName=navigator.appName;
if(browserName=="Microsoft Internet Explorer") {
var is_ie = true;
} else {
var is_ie = false;
}
if(is_ie) {
tmphght = document.getElementById(theElt).offsetHeight;
} else {
docObj = document.getElementById(theElt);
var tmphght1 = document.defaultView.getComputedStyle(docObj, "").getPropertyValue("height");
tmphght = tmphght1.split('px');
tmphght = tmphght[0];
}
return tmphght;
}

var cumputedHeight = getComputedHeight("epsDivId") + "px";
parent.document.getElementById("epsApplication").style.height = cumputedHeight;
if(true){
document.getElementsByName("closeForm")[0].style.display = "none";
}

if(document.getElementById("applicant_name") != null){

document.getElementById("applicant_name").style.width = '350';
}

function revertDivCust(id){

var element= document.getElementById(id);

if(element.style.display=="none" || isBlankOrNull(element.style.display)){
element.style.display="block";
element.style.zIndex=2;
}else{
element.style.display="none";
element.style.zIndex=-1;
}
}
</script>
    Post Posted: 22 Sep 2013, 05:42
 
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
 
Post subject:  Re: TTF embedding
You defined debug="true" attribute. That means PD4ML prints to server's log TTF loading diagnostics.

Can it lookup requested fonts? Can it load them? The log output should help to determine the problem reason.
    Post Posted: 11 Sep 2013, 12:11
 
Post subject:  i have problem with arabic i used
i have problem with arabic i used

<pd4ml:transform screenWidth="400"
pageFormat="A5"
pageOrientation="landscape"
debug="true"
pageInsets="100,100,100,100,points" >

<pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/>

<pd4ml:usettf from="C:/fonts"/>

</pd4ml:transform>

but the arabic appear with ???? why can any one help me
    Post Posted: 11 Sep 2013, 09:16
 
Post subject:  Re: TTF embedding
Here are good starting points:
http://pd4ml.com/reference.htm#7.1
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
    Post Posted: 28 Jan 2013, 18:06
 


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