We are using Solaris 10.
We have j2ee program which is deployed as an OC4J instance in Oracle's Application Server 10.1.2.3. This j2ee program invokes the prince executable.
I do not think that Prince is installed correctly on our server. The only way I can invoke any PrinceXML CSS is by injecting it into the javascript. I cannot simply add the css to my stylesheet.
See the following example below:
There are a couple of things I would like to determine as we have a large client base that will use this:
Thanks!!!
We have j2ee program which is deployed as an OC4J instance in Oracle's Application Server 10.1.2.3. This j2ee program invokes the prince executable.
I do not think that Prince is installed correctly on our server. The only way I can invoke any PrinceXML CSS is by injecting it into the javascript. I cannot simply add the css to my stylesheet.
See the following example below:
</style>
<script language="javascript">
function setFormContents(theForm,debug) {
var styletemp = "";
var linetemp = "";
var loope = 0;
var loopi = 0;
var fileDomain;
var stylenumber = document.styleSheets.length;
var rulenumber = 0;
for (loope = 0;loope < stylenumber; loope++)
{
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
{
linetemp = document.styleSheets[loope].cssText;
styletemp = styletemp + linetemp;
}
else
{
if (document.styleSheets[loope].href) {
fileDomain = document.styleSheets[loope].href.split(/\/+/g)[1];
}
else {
fileDomain = "";}
if (fileDomain == "acgidevxx.acgisoftware.com" || fileDomain == "") // ignore CSS files from other domains
{
if (document.styleSheets[loope].rules){
cssRules = document.styleSheets[loope].rules; }
else {
cssRules = document.styleSheets[loope].cssRules; }
if (cssRules){
rulenumber = cssRules.length;
for (loopi = 0; loopi < rulenumber; loopi++)
{
linetemp = cssRules[loopi].cssText;
styletemp = styletemp + linetemp;
}
}
}
}
}
if (debug===true){
document.thepdfdebugform.pdfreport.value='<HTML><STYLE type="text/css">' + styletemp + '</STYLE><BODY>' +
document.body.innerHTML + '</BODY></HTML>';
}
else{
document.thepdfform.pdfreport.value='<HTML><STYLE type="text/css">@page {\rprince-shrink-to-fit: none;\r }\r' + styletemp + '</STYLE><BODY>' +
document.body.innerHTML + '</BODY></HTML>';
}
return true;
}
</script>
There are a couple of things I would like to determine as we have a large client base that will use this:
Would it be better to install this on a windows server... is that even doable? Can Prince reside on a different server than my main web-server?
Is there someplace that I can see how the output is suppose to look? (Do you have someplace I can past my html to see how the output looks on a proper PrinceXML imstall?
Thanks!!!