Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26740

    Hello,
    i am trying to convert xhtml to pdf. i have generated xhtml file through jsf componants so that in xhtml jsf tags are present . can you tell how do i get with it as i am totally confused with the tag 🙁

    Prashant

    #29028

    Probably the most straightforward approach: create a simple converter JSP and point it to XHTML page via <jsp:include>

    <%@ taglib prefix="pd4ml" uri="https://pd4ml.com/tlds/pd4ml/2.6" %><pd4ml:transform
    screenWidth="1000">
    <jsp:include page="xhtml.jsp">
    </pd4ml:transform>

    #29029

    <pd4ml:transform
    screenWidth="<%=screenWidth1 %>"
    pageFormat="<%=pageFormat %>"
    pageOrientation="<%=pageOrientation %>"
    pageInsets="1,1,1,1,points"
    enableImageSplit="false"
    fileName="c:report.pdf">
    
    <jsp:include page="<%=clickUrl %>" >
    <jsp:param name="dbConnVar" value="<%=dbConnVar%>" />
    </jsp:include>
    
    </pd4ml:transform>

    #29030

    Could you please add enable=”false” attribute to <pd4ml:transform> and to generate a HTML with the JSP placeholders substituted with a dynamic content. Save the HTML from a web browser and publish it here (or send to support pd4ml com)

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.