PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the Board Administrator.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Truncated text in PDF file while using <pd4ml:footnote>
Post subject:  Truncated text in PDF file while using <pd4ml:footnote>
Wildfly 18.0.1
Java 11.0.10
PD4ML 3.11.4fx4

Hello,

We are having an issue using <pd4ml:footnote> in JSP file. When the line with <pd4ml:footnote> reaches the bottom edge of the page in certain cases some text gets truncated and disappears between pages (main text, not footnote).
I prepared "truncated_text_example.jsp" file to present the problem. It contains lorem ipsum text and maximally simplified HTML (only the BR tag was used).
Do not change their content (inside the BODY tag) because these are carefully selected cases in which there is a text cutting error. Adding words, extra lines, changing the HTML structure may result in a correct printout, and we want to solve the specific cases that generate this error. It seems that the use of the <pd4ml:footnote> tag in the code has an impact on text truncation. It is responsible for generating footnotes. If this tag is removed from the example, the content of the PDF is correct.

In the attached example the missing text is: "Latin literature, making it over 2000 years old. Richard McClintock, a Latin professor."

Unfortunately, generating footnotes is essential in our application.

In the example code, I added a section responsible for saving the PD4ML generated PDF file to the local hard drive "C" in the "truncated_text_example" directory.
In the zip attached there are JSP source file and the resulting PDF file.

Appreciate your support,
Jacek Nowakowski


Attachments:
truncated_text_example.zip [24.5 KiB]
Downloaded 65 times
    Post Posted: 14 May 2021, 10:33
 


cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share