Forum Replies Created

Viewing 15 posts - 1,111 through 1,125 (of 4,234 total)
  • Author
    Posts
  • in reply to: initialPageNumber
    #28394

    A version with the feature (v370fx2) is already available for download.

    In command line an initial page number can be defined like that:
    … -param pd4ml.initial.page.number 3

    Unfortunately in RTF format we found no way to impact total number of pages value correspondingly, as it is by PDF output.

    in reply to: default zoom
    #28433

    @PD4ML wrote:

    (or
    Pd4Cmd … -param pd4ml.document.view.mode SinglePage )

    Thank you! this is perfect!

    in reply to: initialPageNumber
    #28395

    Hello !

    Works great !!
    Thank you very much for your help and the quick adding of the feature !
    I’m going to get my supervisor to order the pro license as soon as possible.

    Thanks again !

    Kind regards
    Niels Göran

    in reply to: Troubleshooting
    #26524

    We got repeatedly following Stacktraces while crashing the vm:

    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j sun.awt.color.CMM.cmmGetProfileData(J[B)I+0
    j java.awt.color.ICC_Profile.getData()[B+35
    j org.zefer.pd4ml.pdf.h$_h.o00000()V+132
    j org.zefer.pd4ml.pdf.c.OÒ0000()I+40
    J org.zefer.pd4ml.pdf.c.ø00000()V
    j org.zefer.pd4ml.pdf.c.close()V+12
    j org.zefer.pd4ml.pdf.PD4Device.dispose()V+23
    j org.zefer.pd4ml.pdf.PD4Device.finalize()V+1
    v ~StubRoutines::call_stub
    J java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V
    J java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V
    J java.lang.ref.Finalizer$FinalizerThread.run()V
    v ~StubRoutines::call_stub

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0x000000381ce7b59b, pid=32323, tid=1082612032
    #
    # JRE version: 6.0_24-b07
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C [libc.so.6+0x7b59b] memcpy+0x15b
    #
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #


    T H R E A D


    Current thread (0x0000000040cb4800): JavaThread “Finalizer” daemon [_thread_in_native, id=32330, stack(0x0000000040775000,0x0000000040876000)]

    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000

    Does anybody has a glue about the reason?

    in reply to: Java 6.0_24b07 crashes while in finalize of PD4Device
    #28434

    PD4ML is 100% Java application, so “in theory” it cannot crash JVM. As a rule such fatal crashes are caused by inconsistencies in JDK installation or by JVM bugs (specific for a particular platform).

    I googled for similar stack traces – the only thing I suspect is that java.awt.color.ICC_Profile.getData() is not thread safe. Did you face with the problem when the application was under a heavy load (multiple simultaneous requests)?

    The problematic method is called for PNG images and only for PNGs have ICC color profile. Probably there is a “killer” PNG image, your JVM instance is not able to deal with. Could you please try to identify it?

    Depending on your feedback we’ll produce a test version of PD4ML with synchronized ICC_Profile.getData() calls and with a possibility to disable the calls at all (it is a good practice to have image color profiles embedded to PDF, but it is not mandatory).

    #28417

    @PD4ML wrote:

    There is a new PD4ML.NET version available for download. Please check if it solves the issue.

    The newer .NET version did not help me with anything. I do see the same problem.
    I couldn’t able to display the Header and footer using PD4ML.NET.

    I need to do this ASAP. Please run a sample in .NET and try to mimic this issue at your end. The current process is taking too much of time and did not solve the issue since long with our discussions.

    I really appreciate if you can consider this an prioritized issue and provide me .NET specific sample with headers, footers, page breaks and some content in it.

    Thanks and Regards,
    VA

    in reply to: General questions / FAQ
    #26526

    hello
    i have downloaded pd4ml pro evaluation to test it before i buy it … for me i need to write arabic and english PDFs but i am facing a strange issue with the header when i try to write arabic into it . arabic is never shown on the header but it shows on the rest of the document …. please help me why i cant see my arabic characters on the header and by the way i am using fonts.jar that you have placed on your forums

    package ae.rwd.servlet;

    import java.awt.Font;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import java.io.StringWriter;
    import java.io.UnsupportedEncodingException;
    import java.io.Writer;
    import java.net.MalformedURLException;
    import java.net.URL;
    import org.zefer.pd4ml.PD4ML;
    import org.zefer.pd4ml.PD4PageMark;

    /**
    *
    * @author Anas
    */
    public class Pdf {

    public static ByteArrayOutputStream convertHtmlToPdf(String BodyUrl, String HeaderUrl) throws MalformedURLException, FileNotFoundException, IOException {

    java.io.ByteArrayOutputStream fos = null;
    PD4ML pd4ml = null;

    URL url = new URL(BodyUrl);
    // File file = new File(“test.pdf”);
    fos = new java.io.ByteArrayOutputStream();
    // fos = new java.io.FileOutputStream(file);
    pd4ml = new PD4ML();

    PD4PageMark header = new PD4PageMark();
    header.setHtmlTemplate(getHeader(HeaderUrl));
    header.setAreaHeight(-1);
    pd4ml.setPageHeader(header);

    pd4ml.useTTF(“java:fonts”, true);
    pd4ml.setDefaultTTFs(“Arial”, “Arial”, “Courier New”);
    pd4ml.render(url, fos);

    return fos;

    }

    private static String getHeader(String HeaderUrl) throws MalformedURLException, IOException {

    URL url = new URL(HeaderUrl);
    return convertInputStreamToString(url.openConnection().getInputStream());
    }

    private static String convertInputStreamToString(InputStream is) throws IOException, UnsupportedEncodingException {

    if (is != null) {
    Writer writer = new StringWriter();
    char[] buffer = new char[1024];
    try {
    Reader reader = new BufferedReader(new InputStreamRead(is, “UTF8”));
    int n;
    while ((n = reader.read(buffer)) != -1) {
    writer.write(buffer, 0, n);
    }
    } finally {
    is.close();
    }
    return writer.toString();
    } else {
    return “”;
    }
    }
    }

    #28418

    > A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 174.143.96.38:80

    Is the PD4ML-enabled application running also on 174.143.96.38?

    #28419

    @PD4ML wrote:

    > A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 174.143.96.38:80

    Is the PD4ML-enabled application running also on 174.143.96.38?

    I am able to generate the PDF but no header, footers or page breaks even though I did convert the same java code you have provided and tried.

    Please help me to include the missing parts in the current report i am generating.

    Thanks and Regards,
    VA

    #28420

    I cannot help you in a case you do not answer my questions.

    #28421

    @PD4ML wrote:

    I cannot help you in a case you do not answer my questions.

    Yes…is the answer.

    Will it be easy to talk in live please…instead of spending time in chatting please?
    If needed I can share my environment and show you what i am doping.

    I am under the gun to resolve all the issue and demo it to my end users.

    Hope you can understand my current situation.

    Thanks and Regards.
    Va

    #28422

    Please send an email to support pd4ml com with complete program source. Especially I am interested in the parameters you pass to the method:

    [language=vb:2f7u7vxz]Public Sub generatePDF(ByVal inputUrl As String, ByVal htmlWidth As Integer,
    ByVal pageFormat As String, ByVal permissions As Integer, ByVal bookmarks As String,
    ByVal orientation As String, ByVal insets As String, ByVal fontsDir As String,
    ByVal outfile As Stream)[/language:2f7u7vxz]

    Also, do you use Std or Pro version of PD4ML.NET?

    Unfortunately right now I have no time to chat – there are some other support requests in the queue. But I’ll try to reply your messages asap.

    in reply to: Pro evalution Bug as it seems
    #28445

    hey there no answers for me herer … please help me solving my problem

    in reply to: Pro evalution Bug as it seems
    #28446

    Could you publish the source HTML (for main body and header) and its resulting PDF here? Or send it to support pd4ml com

    in reply to: General questions / FAQ
    #26525

    Hi, i have a document that is build from a SQL query of a field that contains HTML previously entered by a HTMLEditor. Everything is fine but when i want to display the document from a client the document shows on the server not in the client machine, and of course i need the document shows on client machine i use the following code:

    try {
    /*no funca*/
    // File f = new File(“file://localhost/AsignaNombre.pdf”); //doesn’t work
    fos = new FileOutputStream(“test.pdf “);
    } catch (FileNotFoundException fe) {

    }catch(Exception ex){

    }
    cPD4ML pd4ml = new cPD4ML();
    //abre el pdf inicio
    try {
    …..
    [database query with Resulset ]
    ……
    //HTMLString store the HTML from the Oracle’s CLOB query
    pd4ml.render(new StringReader(HTMLString),output);
    fos.close();
    } catch (Exception e) {

    }

    try { // this shows the document on screen
    Runtime.getRuntime().exec(“rundll32 url.dll,FileProtocolHandler test.pdf”);
    } catch (IOException ioe) {
    // TODO
    System.out.println(“Problema al abrir PDF “+ioe.getMessage());
    ioe.printStackTrace();
    }
    i’m testing pd4ml evaluation if everything is right my company buy the licence, help me

Viewing 15 posts - 1,111 through 1,125 (of 4,234 total)