Forum Replies Created

Viewing 15 posts - 1,006 through 1,020 (of 4,246 total)
  • Author
    Posts
  • in reply to: Generate RTF with Wrapper
    #28329

    To be honest we’ve forgotten to add the feature to the wrapper.

    The wrapper source code is available for download, so you may to add the feature by yourself. Or wait till the next (beta) release of PD4ML – we’ll add the missing code. Please do not forget: RTF output is a feature of PD4ML Pro.

    in reply to: IllegalStateException
    #28336

    We are using struts2 web tier.
    I am able to see the pdf without any problem, but I am getting following error in the log, while adding the pd4ml tag in jsp.
    Without pd4ml tag in my jsp, I am not getting any error.
    Any thoughts???

    … 38 more
    aused by: org.apache.tiles.util.TilesIOException: JSPException including path ‘
    pages/common/footer.jsp’.
    at org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServl
    tException(ServletTilesRequestContext.java:298)
    at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesR
    questContext.java:82)
    at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTiles
    equestContext.java:73)
    at org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesReq
    estContextWrapper.java:72)
    at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTil
    sRequestContext.java:88)
    at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.
    ava:283)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttribute
    ag.java:140)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttribute
    ag.java:117)
    at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport
    java:154)
    at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecur
    tyTagSupport.java:75)
    at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTag
    upport.java:80)
    at org.apache.jsp.pages.common.mainLayout_jsp._jspx_meth_tiles_005finser
    Attribute_005f3(mainLayout_jsp.java:397)
    at org.apache.jsp.pages.common.mainLayout_jsp._jspService(mainLayout_jsp
    java:144)
    … 50 more
    aused by: java.lang.IllegalStateException: getOutputStream() has already been c
    lled for this response
    at org.apache.catalina.connector.Response.getWriter(Response.java:608)
    at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade
    java:200)
    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper
    java:101)
    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper
    java:101)
    at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper
    java:101)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:12
    )
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.jav
    :118)
    at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:296)

    at java.io.PrintWriter.write(PrintWriter.java:382)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.jav
    :119)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.jav
    :181)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(J
    pFactoryImpl.java:122)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactor
    Impl.java:79)
    at org.apache.jsp.pages.common.footer_jsp._jspService(footer_jsp.java:32
    )
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:68)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    java:376)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    0)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    cationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    lterChain.java:208)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
    tcher.java:674)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
    spatcher.java:579)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
    atcher.java:516)
    at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
    java:930)
    at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.j
    va:674)
    at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
    :668)
    at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesR
    questContext.java:80)
    … 61 more

    in reply to: IllegalStateException
    #28337

    @PD4ML wrote:

    My first suspect is that the PDF bytes are sent to the browser not in bin, but in text mode. The content has grown because of newline conversion from “n” to “nr”. But I cannot be sure about that before I took a look to your code.

    I dont know if that was what you meant. But i had some line breaks before the transform tag.

    thanks

    in reply to: Troubleshooting
    #26498

    Hi

    I am using the pd4ml 3.70., but having an an issue with the css, so i want to make some special exceptions in the css for my pdf.

    @media pdf{ } is working fine, but it is still rendering what is inside @media screen{}
    even though i have set the parameter pd4ml.media.type.print to be “override”.

    I know i can add a media=”screen” to the stylesheet link tag in the html, that works.

    But any way, i can get pd4ml to ignore what is inside @media screen{}?

    in reply to: HTML/CSS rendering issues
    #26490

    Hi,

    I am evaluating pd4ml and have run into a problem where, when my test html file references a png image, the image in the resultant pdf file comes out garbled.

    I’ve tested converting the png image to gif, and then the resultant pdf file renders the image correctly, so I’m wondering if there are known bugs regarding png images?

    Thanks.

    in reply to: Troubleshooting
    #26491

    Hello,

    I am trying to use various fonts with css which aren’t working. I was just wondering if I am doing something wrong, or maybe they are not supported.

    To define a font for some text I use text here

    This works for Arial, Courier New, and Times New Roman but doesn’t work for Arial Black, and Tahoma.

    Is there a list of fonts I could add to the 3 working ones and how can I get the non-working ones to display as they should. Thank you!

    in reply to: General questions / FAQ
    #26499

    I understand PD4ML cannot merge documents and the recommendation is to use another product for merging or to string multiple HTML documents together then convert it with PD4ML. If I do the latter, is it possible to set the start page number for each logical document?

    in reply to: pdf renders garbled png image
    #28320

    An HTML document sample and its PDF output, sent to support pd4ml com would help us to analyze the problem reasons.

    in reply to: question about fonts
    in reply to: Can I set a start page number?
    #28346

    You may define that by PD4ML API call PD4PageMark.setInitialPageNumber(int)

    See: http://www.pd4ml.com/api/org/zefer/pd4ml/PD4PageMark.html

    in reply to: General questions / FAQ
    #26500

    Is there a way to define a header and/or footer to only print on the last page using the markup? For example

    I know there is a skiplast, which skips printing on the last page but I have documents that require a footer/header to appear only on the last page (on an unknown lenght document).

    Thanks,

    Derek

    in reply to: pdf renders garbled png image
    #28321

    Sure, here’s the sample html I’m using (just using wikipedia’s png logo to test):



    Test




    And I’ve attached the pdf output.

    in reply to: scope = "lastpage"?
    #28347

    There is a conceptual issue to implement that.

    Let’s say page height is 800px, header is 200px high and the content on the last page takes 700px.

    Where should it place the header in the situation to? The only technically correct way is to add an extra page to print the header only. But nobody wants to have such trailing blank pages…

    As a workaround I would recommend the following:

    header substitution: add an explicit page break before the last page, followed with the header body.

    [language=xml:20jqbs4i]

    Last page header

    remaining content[/language:20jqbs4i]

    footer substitution: define last page footer as a footnote

    [language=xml:20jqbs4i]end of the document content


    Last page footer
    [/language:20jqbs4i]

    in reply to: pdf renders garbled png image
    #28322

    Well, it seems to be .NET specific issue. I’ve just tested with Java version – everything is ok. See attached.

    Which version of PD4ML do you use?

    in reply to: pdf renders garbled png image
    #28323

    Hi, yes, we are using the .Net version: pd4ml.pro.trial.dotnet20.360b3

Viewing 15 posts - 1,006 through 1,020 (of 4,246 total)