Forum Replies Created

Viewing 15 posts - 91 through 105 (of 4,234 total)
  • Author
    Posts
  • in reply to: HTML/CSS rendering issues
    #26232

    We are using pd4ml.useTTF( fontsDir, true ); in the java class, we are also including ‘‘ in the top of our HTML, and yet it does not seem to be including our custom TTF.

    Do you have any tips for debugging this? or what else we should look for?

    Koda

    in reply to: Custom Fonts
    #27408

    The debug tactics is quite simple: switch debug output on with pd4ml.enableDebugInfo() and check what it dumps to STDOUT. It should be traces that it successfully loaded pd4fonts.properties (by the way, did you generated the file as required?) and the referenced font files.

    TTF embedding feature has one requirements to TTF file format: the custom TTFs must be UNICODE-compatible (as almost any modern TTF font).

    If for some reasons it rejects your TTFs, you may play with TTF file format using free FontForge utility (you may change TTF file options in “Save TTF” dialog). It is built for UNIX/Linux platform, but also runs on Win32 in Cygwin environment. Just google for a preconfigured FontForge + Cygwin with the following keyword: “fontforge-mingw_2008_11_21

    mil
      in reply to: Stylesheet definition results in emtpy pdf document
      #27390

      We’re running the latest version of pd4ml (351b1).

      in reply to: Custom Fonts
      #27409

      When we use the command line to generate the pd4fonts.properties file it returns a pd4brower.properties file instead. So we copied an example fonts properties file and changed it as per our font files and names.

      Here is what we typed from the command line…

      java -jar pd4ml.jar -configure.fonts /path/to/my/fonts/

      and that spits out a pd4browser.properties file.

      Here’s a copy of our simple pd4fonts.properties file…

      #this is an autogenerated file. please remove manually any references to copyrighted fonts
      #Wed Sep 13 13:59:25 CEST 2006
      Comic Sans MS=Comic Sans MS.ttf
      Minion=minion.ttf

      We haven’t tried the debug option yet, I figured I’d post this information first. I will try and see what the debug spits out in a bit. If there’s anything that jumps out that’s incorrect here that might save me some time.

      in reply to: Custom Fonts
      #27410

      Thanks for the help, we managed to get it working.

      We still don’t know why the command to generate the pd4fonts.properties file wasn’t working. We had an issue with that file and once we fixed it the loading of the fonts worked.

      Thank you for the suggestion of the debugging, that’s what lead us to find the error.

      Cheers

      in reply to: Custom Fonts
      #27411

      @koda-dev wrote:

      When we use the command line to generate the pd4fonts.properties file it returns a pd4brower.properties file instead.

      During the first run of PD4Browser (java -jar pd4ml(_demo).jar) in any mode, it generates default application properties file pd4brower.properties

      You run PD4Browser the first time to generate TTF properties. So it produces two .properties files. One is in the current directory (./pd4brower.properties), another one is in the font files directory (/path/to/my/fonts/pd4fonts.properties)

      The fact of two simultaneous .properties files output may be confusing. Also if you generate the properties file for c:windowsfonts, the resulting file exists, but it is not visible with windows explorer (in the folder the explorer in the fonts-only view mode). But the file may be easily opened with any text editor, for instance.

      Obviously we need to clarify the topics more detailed in the documentation.

      in reply to: Supported platforms
      #27227

      PD4ML runs under any JDK, starting from v1.3. However Pd4Php from PHP wrapper sample is complited with JDK 1.5. You may always recompile Pd4Php with JDK 1.4 (its source code is part of the wrapper package), or wait some time untill we updated it on our site (it will take 2-3 days).

      in reply to: Deployment / Configuration issues
      #26233

      we want to buy a license can anyone answer the question from subject?

      in reply to: HTML/CSS rendering issues
      #26234

      HTML

      tags are not honored in the 3.5.1b1 build. I have tested the same HTML against 3.5.0 (while evaluating it) and it rendered properly, with the text inside the
      tags centered in the output PDF, in both PD4ML and PD4ML Pro versions.

      The code using PD4ML has not been changed–only the jar file was updated. Please advise.

      in reply to: HTML/CSS rendering issues
      #26235

      hi,

      we like to buy a liciense of your html to pdf tool. Currently we evaluating the trail version. But we have some problems with floating divs. Left floated divs are stacked in the pdf file. We doesn’t touch the java file. Here the html code.

      html:
      [language=html:eilo2pqv]

      Test
      Test (Test)


      [/language:eilo2pqv]

      css:
      [language=css:eilo2pqv]body { font-family: Arial,Helvetica,sans-serif; font-size: 0.8em; margin: 10px; padding: 0px; }
      div.content { width: 950px; }
      .normal { font-weight: normal; }
      div.gray_bar {height: 20px; color: #FFFFFF; background-color: #BBBBBB; border: 1px solid #000000; width: 100%; font-weight: bold; clear: both;}
      div.test { width: 50%; padding-top: 2px; float: left; }[/language:eilo2pqv]

      pdf_out.jpg shows the output. What is the problem?

      thanks

      André

      in reply to: HTML/CSS rendering issues
      #26236

      Hi, I am having a problem using the example as it appears in your reference manual for the header.setHTMLTemplate(“somehtml”) call. The header text in the example (Header Text) does not appear in the rendered document. I am using a version of pd4ml pro I downloaded this morning: pd4ml.pro.trial.351b7.zip. Is the problem a bug in the pd4ml code or is there a modification to the example code that will fix the rendering problem?

      I tried using the pd4ml_demo.jar and ss_css2.jar from pd4ml.pro.trial.351b.zip to see if the problem could be resolved, but that didn’t work.

      Can you suggest any way to resolve the problem? I really need the capability to populate headers and footers with tables. If you have a way I can do that without the setHTMLTemplate() call, please let me know.

      Thanks for your help.
      jean

      in reply to: setHTMLTemplate()
      #27424

      Hi,
      I have answered most of my own questions. setHTMLTempalte() works when I set the area height manually (setAreaHeight(150)) and do not set the HTML width (setHTMLWidth(950)) and do not use width=”100%” in the

      tag. But I cannot use setAreaHeight(-1) to allow pd4ml to calculate appropriate height. The top of the header is cut off.

      Any suggestions on how to auto-adjust header and footer heights? In my applications the headers will be dynamically generated so it would be nice to have a way to expand and shrink the height as needed rather than set a fixed height.

      Thanks for your help!
      Jean McCallum

      in reply to: Supported platforms
      #27228

      Hi, we updated the java of one of the machines and now we can create the PDF executing in SSH, see the command:
      /QOpenSys/QIBM/ProdData/OS400/PASE/bin/java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml.jar Pd4Php http://127.0.0.1:8000/scriptcase/tmp/test.html 800 LETTER -orientation PORTRAIT -permissions 2076 > /www/zendcore/htdocs/scriptcase/tmp/test.pdf

      but when executing this same command in PHP (exec, system, shell, passthru and all others functions) we always are getting a 0kb pdf.

      what can we do?

      in reply to: Null Pointer Exception While Rendering A tomcat URL
      #27354

      As I see from the exception stack trace, an attempt to load source HTML from

      http://localhost:8084/ManglamProj/vtsInvoice2.jsp?cmd=print&invoice_id=980

      failed with error code 500. It is a problem of vtsInvoice2.jsp.

      Does the URL work if you open it with a web browser?

      in reply to: Supported platforms
      #27229

      Try to add

      2>/www/zendcore/htdocs/scriptcase/tmp/error.txt

      to the command line. It should output error messages, if any, to error.txt

    Viewing 15 posts - 91 through 105 (of 4,234 total)