Forum Replies Created
-
AuthorPosts
-
in reply to: Generate RTF with Wrapper December 15, 2010 at 20:30#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 December 15, 2010 at 21:12#28336We 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 morein reply to: IllegalStateException December 16, 2010 at 13:37#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 December 16, 2010 at 13:58#26498Hi
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 December 17, 2010 at 00:48#26490Hi,
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 December 17, 2010 at 19:17#26491Hello,
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
<htmltag style="font-family: Times New Roman;">text here</htmltag>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 December 18, 2010 at 07:10#26499I 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 December 21, 2010 at 16:07#28320An 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 December 21, 2010 at 16:10#28328The following info should help:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: Can I set a start page number? December 21, 2010 at 17:18#28346You may define that by PD4ML API call PD4PageMark.setInitialPageNumber(int)
See: https://www.pd4ml.com/api/org/zefer/pd4ml/PD4PageMark.html
in reply to: General questions / FAQ December 21, 2010 at 18:38#26500Is there a way to define a header and/or footer to only print on the last page using the
<pdrml:page.header> markup? For example <pd4ml:page.header scope="lastpage" >
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 December 21, 2010 at 18:56#28321Sure, here’s the sample html I’m using (just using wikipedia’s png logo to test):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Test</title> </head> <body> <img src="http://upload.wikimedia.org/wikipedia/commons/6/63/Wikipedia-logo.png" /> </body> </html>
And I’ve attached the pdf output.
in reply to: scope = "lastpage"? December 21, 2010 at 18:58#28347There 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.
<div>Last page header</div> remaining content
footer substitution: define last page footer as a footnote
end of the document content <hr> Last page footer
in reply to: pdf renders garbled png image December 21, 2010 at 19:04#28322Well, 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 December 21, 2010 at 19:25#28323Hi, yes, we are using the .Net version: pd4ml.pro.trial.dotnet20.360b3
-
AuthorPosts
