Forum Replies Created

Viewing 15 posts - 691 through 705 (of 4,234 total)
  • Author
    Posts
  • in reply to: Adobe Reader Version Problem
    #28065

    Dinesh, PD4ML outputs PDFs, which are only compatible with Acroread 5 and newer.

    in reply to: uncorrect size for image
    #27818

    I believe I am having a similar problem. All of my images are pixelated. Did you/anyone find a fix for this?

    Thanks in advance for any help with this.

    in reply to: uncorrect size for image
    #27819

    PD4ML never applies any kind of resampling to images. It embeds them to PDF, keeping original pixels untouched.

    Here is some info an a possible workaround:
    pdf-generation-troubleshooting-f4/prevent-images-being-scaled-t38.html

    in reply to: Troubleshooting
    #26407

    any ideas about this exception?

    java.net.ConnectException: Connection timed out<br /> <br /> at java.net.PlainSocketImpl.socketConnect(Native Method)<br /> <br /> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br /> <br /> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<br /> <br /> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<br /> <br /> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)<br /> <br /> at java.net.Socket.connect(Socket.java:529)<br /> <br /> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)<br /> <br /> at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)<br /> <br /> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)<br /> <br /> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)<br /> <br /> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)<br /> <br /> at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)<br /> <br /> at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)<br /> <br /> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)<br /> <br /> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)<br /> <br /> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)<br /> <br /> at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)<br /> <br /> at org.zefer.cache.f.getResourceAsBytes(Unknown Source)<br /> <br /> at org.zefer.html.doc.PD4MLHtmlParser.parse(Unknown Source)<br /> <br /> at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)<br />
    Line 827 is pd4ml render invocation!
    <br /> at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)<br /> <br /> at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)<br /> <br /> at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)<br /> <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> <br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> <br /> at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)<br /> <br /> at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)<br /> <br /> at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)<br /> <br /> at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)<br /> <br /> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)<br /> <br /> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)<br /> <br /> at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br /> <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br /> <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br /> <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br /> <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br /> <br /> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)<br /> <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br /> <br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br /> <br /> at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)<br /> <br /> at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)<br /> <br /> at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br /> <br /> at java.lang.Thread.run(Thread.java:619)<br /> <br /> java.lang.NullPointerException<br /> <br /> at org.zefer.pd4ml.PD4ML.super(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> <br /> at questionario.GestioneQuestionarioPageAdvanced.generaQuestionarioNuovo(GestioneQuestionarioPageAdvanced.java:827)<br />
    Line 827 is pd4ml render invocation
    <br /> at questionario.GestioneQuestionarioPageAdvanced$3.onClick(GestioneQuestionarioPageAdvanced.java:308)<br /> <br /> at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:214)<br /> <br /> at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)<br /> <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> <br /> at java.lang.reflect.Method.invoke(Method.java:597)<br /> <br /> at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)<br /> <br /> at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)<br /> <br /> at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)<br /> <br /> at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1220)<br /> <br /> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1297)<br /> <br /> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1399)<br /> <br /> at org.apache.wicket.RequestCycle.request(RequestCycle.java:529)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)<br /> <br /> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:201)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br /> <br /> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br /> <br /> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br /> <br /> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br /> <br /> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br /> <br /> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br /> <br /> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)<br /> <br /> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br /> <br /> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br /> <br /> at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)<br /> <br /> at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)<br /> <br /> at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2018)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br /> <br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br /> <br /> at java.lang.Thread.run(Thread.java:619)<br />

    Thanks

    in reply to: Connection timed out …
    #28068

    I find this

    http://forums.sun.com/thread.jspa?threadID=450114

    It seems like a proxy problem, but we have no proxy!

    Does pd4ml use something like this?

    Tnx

    in reply to: Connection timed out …
    #28069

    It is not necessarily a problem with a proxy. Another possible problem is an invalid routing from one server to another.

    Make sure the server where PD4ML is located is able to ping/traceroute the server where HTML source is.

    in reply to: Connection timed out …
    #28070

    there is not routing, file xml/html and pd4ml are in same server.

    if xml/html is not visible, I think I have a file not found exception.

    Am I wrong?

    in reply to: Connection timed out …
    #28071

    It does not seem so.

    Actually it tries to load via SSL/HTTPS. Is the protocol (and the corresponding port) enabled on the server?

    Also even if everything is on the same server, the server may have a number of DNS names. And some of them are external (not known in the intranet). So try to enable debug on (pd4ml.enableDebugInfo()) and check in server’s log what exactly it tries to connect.

    in reply to: Troubleshooting
    #26408

    Hi, i’m triying to generate a pdf file from a servlet (a filter-servlet to be specific) the thing is that the html that i’m trying to convert have special characters (á é í ó ú ñ) but they are all in the ISO-8859-1 encoding, when i open the URL with firefox all works ok but when i try to open the url with IE the special characters does not render ok, this is my code:
    <br /> //the important part of the code<br /> PD4ML pd4ml = new PD4ML();<br /> <br /> pd4ml.setPageInsets(new Insets(20, 10, 10, 10));<br /> pd4ml.setHtmlWidth(800);<br /> pd4ml.setPageSize(pd4ml.changePageOrientation(PD4Constants.LETTER));<br /> <br /> response.setContentType("application/pdf");<br /> response.setCharacterEncoding("ISO-8859-1");<br /> pd4ml.enableDebugInfo();<br /> ByteArrayOutputStream salida = new ByteArrayOutputStream();<br /> <br /> pd4ml.render(new StringReader(preProcessPage), salida ,new URL("http://"+<br /> request.getServerName()+":"+request.getLocalPort()+<br /> this.getFilterConfig().getServletContext().getContextPath()),"ISO-8859-1");<br /> <br /> response.setContentLength(salida.size());<br /> <br /> response.getOutputStream().write(salida.toByteArray());<br /> response.getOutputStream().close();<br /> <br /> //more code<br />

    The weird thing is that the code works perfect in firefox, maybe the problem is the internet explorer or the pdf plugin, any ideas? thanks….

    in reply to: General questions / FAQ
    #26409

    Embedding a true type font has not worked with the pro version

    Source urls for each page:

    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-brochure-cover-page?brochure_action=cover_page&oid=203894
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-brochure-cover-page?brochure_action=toc&oid=203894
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=9197&sn=Detail-ebrochure
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=19480&sn=Detail-ebrochure
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=8619&sn=Detail-ebrochure
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=13866&sn=Detail-ebrochure
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=11361&sn=Detail-ebrochure
    http://mesoderm-ext.cambrient.com/sat/content/en/za/trade-popup-detail?oid=1854&sn=Detail-ebrochure

    source code:

    private void generatePdf(String outputFileDir, String outputFileName,
    URL[] urls) throws IOException {
    File file = new File(outputFileDir + outputFileName);
    FileOutputStream pdfOut = new FileOutputStream(file);
    PD4ML pd4ml = new PD4ML();
    pd4ml.setPageSize(PD4Constants.A4);
    pd4ml.setPageInsets(new Insets(0, 0, 0, 0));
    pd4ml.setHtmlWidth(1000);

    PD4PageMark footer = new PD4PageMark();
    footer.setPagesToSkip(2);
    footer.setAreaHeight( 50 );
    footer.setHtmlTemplate(“Footer test
    ” + “${page} of
    ${total}” );

    pd4ml.setPageFooter( footer );

    pd4ml.useTTF( “java:fonts”, true );

    pd4ml.setDefaultTTFs(“Trebuchet MS”,”Tahoma”,”Arial”);
    pd4ml.render(urls, pdfOut);
    pdfOut.close();
    }

    attached are the true type fonts and the
    pd4fonts.properties file from the jre/lib/fonts folder

    Java version: 1.6.0
    PD4ML version: pd4ml.prof.360fx1.zip
    Operating system: Ubuntu 8.04

    the pdf generated is here

    http://mesoderm-ext.cambrient.com/sat/applications/sat/custom/test/brochure_1277304505131.pdf

    The second problem is the footer html source is not displaying and the 2 pages are not skipped.

    in reply to: TTF not working with Pro version also footer not working
    #28081

    pd4ml.useTTF( “java:fonts”, true ); assumes, the fonts and pd4fonts.properties are packed to JAR and the JAR is added to the application CLASSPATH.

    Brief info about TTF embedding: pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    If you would like to use fonts from jre/lib/fonts, you need to specify the absolute font directory path. For example:

    pd4ml.useTTF( “/usr/lib/jvm/java-1.5.0-sun/jre/lib/fonts”, true );

    in reply to: TTF not working with Pro version also footer not working
    #28082

    thanks, the fonts are working now that I put in the full path to the jre/libs/fonts folder. rtfm.

    However the footer is still problematic. With this source code:

    footer.setPagesToSkip(2);
    footer.setAreaHeight( 50 );
    footer.setHtmlTemplate(“Footer test
    ” + “${page} of ${total}” );

    What happens is the htmltemplate does skip the first 2 pages but the area height does not.

    I want to fill up the entire page with a graphic in the first 2 pages and then only from pages 3 onwards must the footer area height be set. Is this possible?

    Either that or can I create a separate footer for the first 2 pages which I will fill up with a graphic?

    in reply to: Caching policy
    #27967

    Please share us the details of method for local caching, can we specify the location for caching.

    in reply to: Caching policy
    #27968

    The local caching can be switched on with the following calls.
    [language=java:3k1qn9jp]Map m = new HashMap();
    m.put(PD4Constants.PD4ML_CACHE_IMAGES_IN_TMP_DIR, “true”);
    pd4ml.setDynamicParams(m);[/language:3k1qn9jp]
    A version, which supports the feature, is going to be released till 9th of July.

    in reply to: General questions / FAQ
    #26410

    Hi PD4ML
    We have bought your product how can i give All Rights Reserved in under the footer.

Viewing 15 posts - 691 through 705 (of 4,234 total)