Forum Replies Created

Viewing 15 posts - 3,091 through 3,105 (of 4,234 total)
  • Author
    Posts
  • in reply to: System Error: Stack Underflow
    #29487

    nested to ?

    in reply to: HTML/CSS rendering issues
    #26877

    Hi Team

    I have a pdf with two pages, in this, we have an article summary(title, autor details) & article details which is in a

    .
    the style is given as page-break-inside:auto.
    In some cases, if the article details fits into a page, then the article details alone comes to the next page leaving the article summary alone in the first page & lot of white spaces in the first page as the article details alone comes to the next page.

    We don’t want the article details to go into the second page if it fits to a single page. We always want to split it between pages, how to achieve this. We have given style as page-break-inside:auto for this, we have used enableTableBreaks(true) for the whole PDF which we can’t change. Could you please suggest why it is not working with page-break-inside:auto.

    Is there any option like page-break-inside:always which always breaks the content

    Please suggest us , we are using v397

    Regards
    Sarin T S

    in reply to: Troubleshooting
    #26869

    Just insert an empty img tag:

    And PD4ML will hang, ultimately leading to an OutOfMemory error (when executed a few times).

    in reply to: Empty IMG src hangs PD4ML
    #29388

    Which PD4ML version do you use?

    in reply to: Avoid content fit into a single page, page break
    #29405

    enableTableBreaks(true) implicitly sets

    [language=css:2dgi6m14]TABLE, TR {page-break-inside: avoid}[/language:2dgi6m14]

    Try to override it with

    [language=css:2dgi6m14]TABLE {page-break-inside: auto !important}[/language:2dgi6m14]

    in reply to: Avoid content fit into a single page, page break
    #29406

    thank you for your reply

    we have used page break inside auto !important, but this does not always breaks the content, if the contents fits into a page, it moves into the next page automatically making a lot of white space in the first page. we dont require this, we always want to break the content, could you please tell how we can achieve this, thanks

    in reply to: System Error: Stack Underflow
    #29488

    Sorry, my bad.

    it’s




    Testing

    in reply to: Empty IMG src hangs PD4ML
    #29389

    version 396

    in reply to: Generating editable PDF forms
    #28824

    Hi,

    Sorry to bring back this old topic, but i used the tutorial from pd4ml-html-css-pdf-tips-tricks-f7/pdf-forms-t422.html .

    My generated PDF form isn’t editable. The input are drawn in the PDF, but i can’t interact with the field. I get the same result with or without using the attributes generatePdfForms=”true” and enable=”true”.

    form.jsp
    <br /> <br /> <%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml" %><%@page<br /> contentType="text/html; charset=ISO8859_1"%><pd4ml:transform<br /> screenWidth="300"<br /> pageFormat="A5"<br /> pageOrientation="landscape"<br /> pageInsets="100,100,100,100,points"<br /> enableImageSplit="false"<br /> generatePdfForms="true"<br /> enable="true"><br /> <html><br /> <head><br /> <title>pd4ml test</title><br /> <style type="text/css"><br /> body {<br /> color: #000000;<br /> background-color: #FFFFFF;<br /> font-family: Tahoma, "Sans-Serif";<br /> font-size: 10pt;<br /> }<br /> </style><br /> </head><br /> <body><br /> <br /> <form action="fdf.jsp" method=get name=test><br /> <table border=0><br /> <tr><br /> <td>Field 1:</td><td><input name=field1></td><br /> </tr><br /> <tr><br /> <td>Field 2:</td><td><input name=field2></td><br /> </tr><br /> <tr><br /> <td>Popup message:</td><td><input type=checkbox name=status value=ON></td><br /> </tr><br /> <tr><br /> <td>Result:</td><td><input name=result readonly></td><br /> </tr><br /> <tr><br /> <td> </td><td><input type=submit value=ADD></td><br /> </tr><br /> </table><br /> </form><br /> <br /> </body><br /> </html><br /> </pd4ml:transform><br /> <br />

    my servlet code:
    <br /> import java.io.IOException;<br /> <br /> import javax.servlet.RequestDispatcher;<br /> import javax.servlet.ServletContext;<br /> import javax.servlet.ServletException;<br /> import javax.servlet.http.HttpServlet;<br /> import javax.servlet.http.HttpServletRequest;<br /> import javax.servlet.http.HttpServletResponse;<br /> <br /> <br /> public class CreatePdfForm extends HttpServlet {<br /> <br /> private static final long serialVersionUID = -8263771044288468617L;<br /> <br /> /**<br /> * Constructor of the object.<br /> */<br /> public CreatePdfForm() {<br /> super();<br /> }<br /> <br /> /**<br /> * Destruction of the servlet. <br><br /> */<br /> public void destroy() {<br /> super.destroy();<br /> }<br /> <br /> /**<br /> * The doGet method of the servlet. <br><br /> *<br /> * This method is called when a form has its tag value method equals to get.<br /> *<br /> * @param request the request send by the client to the server<br /> * @param response the response send by the server to the client<br /> * @throws ServletException if an error occurred<br /> * @throws IOException if an error occurred<br /> */<br /> public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br /> <br /> ServletContext app = getServletContext();<br /> <br /> RequestDispatcher dispatcher = app.getRequestDispatcher("/jsp/form.jsp");<br /> <br /> dispatcher.forward(request, response);<br /> }<br /> <br /> /**<br /> * The doPost method of the servlet. <br><br /> *<br /> * This method is called when a form has its tag value method equals to post.<br /> *<br /> * @param request the request send by the client to the server<br /> * @param response the response send by the server to the client<br /> * @throws ServletException if an error occurred<br /> * @throws IOException if an error occurred<br /> */<br /> public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br /> <br /> }<br /> <br /> }<br /> <br />

    my web.xml :

    <br /> <br /> <?xml version="1.0" encoding="UTF-8"?><br /> <web-app version="3.0"<br /> xmlns="http://java.sun.com/xml/ns/javaee"<br /> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br /> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<br /> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"><br /> <display-name></display-name><br /> <servlet><br /> <servlet-name>CreatePdfFormPage</servlet-name><br /> <servlet-class>CreatePdfForm</servlet-class><br /> </servlet><br /> <servlet-mapping><br /> <servlet-name>CreatePdfFormPage</servlet-name><br /> <url-pattern>/CreatePdfFormPage</url-pattern><br /> </servlet-mapping><br /> <welcome-file-list><br /> <welcome-file>index.jsp</welcome-file><br /> </welcome-file-list><br /> <jsp-config><br /> <taglib><br /> <taglib-uri>/pd4ml</taglib-uri><br /> <taglib-location>/WEB-INF/tlds/pd4ml.tld</taglib-location><br /> </taglib><br /> </jsp-config><br /> </web-app><br /> <br /> <br />

    in reply to: Generating editable PDF forms
    #28825

    As I see you currently own PD4ML Std, however editable forms are supported by PD4ML Pro (and derived volume licenses). Please contact support pd4ml com for upgrade options.

    in reply to: System Error: Stack Underflow
    #29489

    Hii,

    Anyone on this?

    in reply to: System Error: Stack Underflow
    #29490

    yes. to be addressed by the forthcoming maintenance release.

    in reply to: General questions / FAQ
    #26856

    Hi there,

    I am trying to embed a document within generated PDF file but the only thing I am getting is an icon but there is no option to click on the icon and open embedded document. I have literally Copied-Pasted your code example like this:

    data:base64,YSxiLGMsZCxlDQp2YWx1ZSAxLCB2YWx1ZSAyLCB2YWx1ZSAzLCB2YWx1ZSA0

    What could I be doing wrong?
    I can attach a full HTML but I see no option to attach a file.

    Best regards
    Marcus

    in reply to: Unable to embed document
    #29364

    Does the attachment appear in the side bar (“Attachments” tab on the left window side of Acroread)?

    in reply to: Unable to embed document
    #29365

    @PD4ML wrote:

    Does the attachment appear in the side bar (“Attachments” tab on the left window side of Acroread)?

    Hi there,
    I had to rewrite the whole thing and that little icon is now appearing but it is still not working correctly.
    If I am displaying contents of a text file and set description=”FileAttachment.txt” then I can open text file attachments by clicking a little icon in generated PDF, great. However, when I try to attach and open a Word Document I am getting the following error message:
    “This file does not have a program associated with it for performing this action. Please install…”.
    When I update description=”Fileattachment.docx” then I can open Word documents only. This will not work of course as business users can attach any type of file so description=”FileAttachment.attachmenttype” must be dynamically generated to reflect attached file extension.

    Is there a way of doing this please?

    Thank you in advance.

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