Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 4,246 total)
  • Author
    Posts
  • VGT
      in reply to: HTML/CSS rendering issues
      #26772

      Hello,

      I’m testing newest pd4ml version downloaded today and have two problems with setting relative position.

      1. combining position:relative with overflow:hidden
      In first example i define div.page to have 200px height and hidden overflow. There is more content and it’s hidden properly, but part of first page is rendered on top of second page. If You’ll remove “position:relative” from div.page styling, problem is gone. But this is only test case for more complicated design I have and I need relative positioning there so removing it is not a solution.

      Html:
      [language=html:3n4q9bqm]



      Page one

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Page two

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.

      Lorem ipsum dolor sit amet, consectetur adipisicing elit.Proin nibh augue, suscipit a, scelerisque sed,
      lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
      Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
      sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu, vel
      tempus metus leo non est. Etiam sit amet lectus quis est congue mollis. Phasellus congue lacus eget neque.
      Phasellus ornare, ante vitae consectetuer consequat, purus sapien ultricies dolor, et mollis pede metus
      eget nisi. Praesent sodales velit quis augue. Cras suscipit, urna at aliquam rhoncus, urna quam viverra
      nisi, in interdum massa nibh nec erat.


      [/language:3n4q9bqm]

      2. child with position:absolute
      Second example have div with size 400×200 and two smaller divs 190×190 each placed inside bigger div with absolute positioning. It works, but only on first page. When I copy same html to second page, there is only 400×200 container div. Two smaller divs are rendered on first page.

      Html:

      [language=html:3n4q9bqm]



      first
      second
      first
      second

      [/language:3n4q9bqm]

      OS:
      Win7
      Java:
      java version “1.7.0_05”
      Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

      Commands I use for generating PDF’s:

      java -cp pd4mlpd4ml_demo.jar Pd4Cmd file:test-overflow.html 900 -out test-overflow.pdf -insets 5,5,5,5,mm
      java -cp pd4mlpd4ml_demo.jar Pd4Cmd file:test-absolute.html 900 -out test-absolute.pdf -insets 5,5,5,5,mm

      Am I doing something wrong with these test cases, or it’s a bug in pd4ml?

      in reply to: Troubleshooting
      #26773

      The example contained in the zip creates a document composed by 8 pages that alternates portrait and landscape pages.

      The header is correctly aligned in the portrait pages but is wrongly aligned in the landscape pages (see the resulting PDF obtained using PD4ML converter GUI with default settings).

      I’ve played also using div, height, but i’ve found no way to have all 8 pages with header correctly aligned. Of course this is not the real scenario but just a stupid example in order to easily reproduce the problem

      I’m using 380fx6 Pro.

      in reply to: Troubleshooting
      #26774

      The example contained in the zip creates a document composed by 8 pages with the intention to create two different section of a document with separated page numbering: 1 of 4, 2 of 4, 3 of 4, 4 of 4 and then restarting again.

      The result is instead 1 of 8, 2 of 8, 3 of 8, 4 of 8, 1 of 8, 2 of 8, 3 of 8, 4 of 8.
      Is there a way to obtain the behavior i need without hard coding the page that compose each section (because in real scenario are variable)?

      I’m using 380fx6 Pro.

      in reply to: General questions / FAQ
      #26775

      Hi,
      Our company purchased the PD4ML library pro license but we lost the invoice so we can’t login to your website to download the library. Can you please help us check and see if you can help us to reset the password.

      It was purchased using Uday.Divvela@fairchildsemi.com email.

      Thank you.

      Regards,
      Yim Lai, Cheong
      Web Support, Corporate IT
      Fairchild Semiconductor Singapore
      DDI: (65) 6496 8866

      in reply to: PD4ML Library Pro License
      #29109

      I’ve just re-sent you the license email.

      in reply to: PD4ProgressListener fails to work
      #29102

      Is there anything that can be done about this? We are trying to give the users some idea of progress (it can take 5-10 minutes to render, we don’t want them to think it has crashed or frozen).

      in reply to: PD4ML Tips & Tricks
      #26776

      Could you please post some sample for converting an URL to an image?

      Tried the sample provided at pd4ml-html-css-pdf-tips-tricks-f7/html-to-image-conversion-with-pd4ml-t39.html, but error shown when initializing PD4MLHtmlParser – refers to missing type ServletContext

      in reply to: Convert URL to image in java applet
      in reply to: css @media parsing
      #28342

      This is still an issue (PD4ML Pro 3.8.0fx6), and it seems that the CSS parser doesn’t like to find “(” as part of an @media declaration; i.e.

      @media (max-width: 899px) {

      This produces the error:

      <br /> org.w3c.css.sac.CSSException: Encountered "(" at line 882, column 8.<br /> Was expecting one of:<br /> <S> ...<br /> "not" ...<br /> "only" ...<br /> <IDENT> ...<br /> <br /> at com.steadystate.css.parser.SACParser.parseStyleSheet(SACParser.java:60)<br /> at org.zefer.html.doc.css.d.Ò00000(Unknown Source)<br /> at org.zefer.html.doc.css.c.o00000(Unknown Source)<br /> at org.zefer.html.doc.PD4MLHtmlParser.buildDocument(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br /> at org.zefer.pd4ml.PD4ML.render(Unknown Source)<br />

      I understand if the parser won’t include media queries, but it’d be nice if it could just ignore them, rather than throwing the exception and failing. As it is, you can’t use a CSS if it has media queries at all.

      in reply to: css @media parsing
      #28343

      Here you faced with a CSS feature, not supported by the open source CSS Parser Project, PD4ML relies on.

      From time to time we patch it and implement new features, but as a rule it is not that trivial. If you have JavaCC skills, you may fix the issue by yourself – the most recent patched sources are available in PD4ML download area.

      in reply to: Page number reset relation with $[total]
      #29108

      There is no way to impact the total page number value.

      For your particular case it would make sense to split the document into two parts, convert them separately and merge.

      in reply to: Header problem using mixed Portrait and Landscape
      #29106

      It is a bug in PD4ML. We’ll see if it can be fixed with the forthcoming maintenance release.

      in reply to: Convert URL to image in java applet
      #29111

      Thanks. The link was helpful. It works.

      in reply to: PD4ML Tips & Tricks
      #26777

      Hi,

      The website I’m testing PD4ML is an ASP.Net website that uses Java applet to take a screenshot of the current ASP.Net page. The website uses Form based Authentication.

      Whenever I call PD4ML.render(URL, ByteArrayOutputStream) to print the current page it gets redirected to the login page and the login page gets printed.

      I tried option 4 given in the link http://pd4ml.com/cookbook/pd4ml_session_id_and_authorization.htm and it still goes to the login page.

      I found a similar question in your forum http://pd4ml.com/support/html-pdf-faq-f1/pd4ml-net-form-authenticated-page-showing-login-page-in-pdf-t620.html but no one has answered this question.

      I’ve also tried the solution provided in http://stackoverflow.com/questions/201699/sharing-asp-net-session-cookies-with-a-java-applet

      Could you please provide some tips on how to solve this issue?

      in reply to: PD4ProgressListener fails to work
      #29103

      I tested the feature with the most recent version – it works fine. Also I analyzed the relevant source code – there is no obvious reason to fail.

      I would recommend to start with a simpler monitor: temporarily remove if(DEBUG) conditions and replace Log.theLog.log with System.out.println

    Viewing 15 posts - 2,071 through 2,085 (of 4,246 total)