Forum Replies Created

Viewing 15 posts - 421 through 435 (of 4,246 total)
  • Author
    Posts
  • in reply to: Deployment / Configuration issues
    #26335

    I downloaded the trial version for .NET pd4ml.pro.trial.dotnet20.351.
    It is running fine when I debug it.
    But after I deploy it to the server to let the manager decide if this is what we will purchase. It give error “The file is damaged and could not be repaired”.
    Is this a license issue or something else?
    If it is a license issue, how can I get the trial version in our server for a certain time, so the decision making people can review it?

    Thanks

    in reply to: Deploy in .net 2.0
    #27857

    This is most likely happening because there is some stray HTML being output after/before the PDF stream is getting created.

    I would recommend to save PDF to the hard drive and to open it with a text editor. Make sure it starts with %PDF-1.4 and ends with %%EOF

    in reply to: Deploy in .net 2.0
    #27858

    It is running fine in my computer though.
    Our application need to pop up this PDF report in the window, and let user to save it to their disks if they want to.
    Below is the code I use to convet a html string to pdf:

    MemoryStream mstr = new MemoryStream(Encoding.ASCII.GetBytes(strHtml));
    pd4ml.render(mstr, outfile);

    below is the value of strHtml in debug mode:

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

    rn

     
    NON-CONFORMANCE RECORD
    Status: VOIDED   NCR #: 25
    Originator: brant   Origin Date: 2/12/2010
      Print Date: 2/17/2010
    Part Number: 01921231 BR FR 1/4X7/8LG  
    NCR Quantity: 3.00 Advanced Deviation: No Inspection Number:
    Document Type: Purchase Order P/O,J/O,W/O#: 10004  
    Supplier or Work Center: 2419 HOGGE PRECISION PARTS  
    Purchasing Agent: JES    

    REASON FOR REJECTION

    Reason Code(s):
    Drawing Specification: d
    Problem / Descrepancy: d
    Q / C Comments: d
     

    MATERIAL DISPOSITION

    Disposition Responsibility: Engineering Disposition Code:
    Disposition By: Disposition Date: Rework/RMA#:
    Disposition Comments:
    Authorized By: Authorized Date:  

    DISTRIBUTION LIST

    brant, Charity Clear,

    in reply to: Deploy in .net 2.0
    #27859

    Problem soved. Thanks a lot.

    in reply to: Deploy in .net 2.0
    #27860

    Could you please post the “outfile” content here or send it to support pd4ml com.

    in reply to: Deploy in .net 2.0
    #27861

    @nereid wrote:

    Problem soved. Thanks a lot.

    Glad you solved it.

    in reply to: General questions / FAQ
    #26336

    Our company has a license for this product which was evaluated by someone else who has since left, so I am having to learn from scratch.

    The way we present web pages is they are coded in XHTML with other proprietary code that goes through a pre-processor before it is rendered to the screen.

    I am trying to understand how to incorporate page breaks into our code. I am assuming that if I add the following:

    (or ?)

    to my html code, that when the pdf is generated, a page break will be implemented at that line in the code.

    So far, I haven’t had any luck, because unfortunately, if I use the tag as above, our processor declares it as invalid and will not render the screen at all.

    So, my first question: Am I correct in my assumption that in order to add a page break to my pdf, I only need to add the page break tag to the html?
    (see below for a larger example of how we are using it.)

    My second question is: Which form of the tag is correct? I have seen the one with and without the slash used in different examples.

    sample html usage:
    Here is some text on one page…

    …and this text will begin at the top of the following page
    in reply to: sometimes I get a MalformedURLException, and sometimes not
    #27856

    Yes, the server log has two different kinds of error messages.

    The first is:

    javax.servlet.jsp.JspException
    at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java(Compiled Code))
    at com.ibm._jsp._SurveyReviewPDF._jspService(_SurveyReviewPDF.java:946)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.dohmh.wtchr.portal.servlets.PDFGeneratorFilter.doFilter(PDFGeneratorFilter.java:46)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java(Compiled Code))
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java(Compiled Code))
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    The second is:

    FATAL [2010-02-09 16:47:27,785] [WebContainer : 10] (_ReviewPDF.java:1335) – Exception::
    Session Object Internals:
    id : CCgy9dIBFXAxJy310W2gFvj
    hashCode : 320696163
    create time : Tue Feb 09 12:41:20 EST 2010
    last access : Tue Feb 09 12:42:38 EST 2010
    max inactive interval : 3600
    user name : anonymous
    valid session : false
    new session : false

    overflowed : false

    app name : default_host/custo/PA_1_GFHI8I930GGA50I8NV90OR3045

    non-serializable app specific session data : null
    serializable app specific session data : []

    ERROR [2010-02-09 16:47:27,785] [WebContainer : 10] (_ReviewPDF.java:1336) – Exception::

    java.lang.IllegalStateException:
    Session Object Internals:
    id : CCgy9dIBFXAxJy310W2gFvj
    hashCode : 320696163
    create time : Tue Feb 09 12:41:20 EST 2010
    last access : Tue Feb 09 12:42:38 EST 2010
    max inactive interval : 3600
    user name : anonymous
    valid session : false
    new session : false

    overflowed : false

    app name : default_host/custo/PA_1_GFHI8I930GGA50I8NV90OR3045

    non-serializable app specific session data : null
    serializable app specific session data : []

    at com.ibm.ws.webcontainer.httpsession.SessionData.getValueGuts(SessionData.java(Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.SessionData.getValue(SessionData.java(Inlined Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.SessionData.getAttribute(SessionData.java(Inlined Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.HttpSessionFacade.getAttribute(HttpSessionFacade.java(Compiled Code))
    at org.apache.pluto.core.impl.PortletSessionImpl.getAttribute(PortletSessionImpl.java(Compiled Code))
    at org.apache.pluto.core.impl.PortletSessionImpl.getAttribute(PortletSessionImpl.java(Compiled Code))
    at com.ibm.faces.portlet.httpbridge.PortletSessionWrapper.getAttribute(PortletSessionWrapper.java(Compiled Code))
    at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java(Compiled Code))
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java(Compiled Code))
    at com.ibm.faces.databind.SelectItemsVarResolver.resolveVariable(SelectItemsVarResolver.java(Compiled Code))
    at com.ibm.faces.portlet.PortletVariableResolver.resolveVariable(PortletVariableResolver.java(Compiled Code))
    at com.ibm._jsp._SurveyReviewPDF._jspService(_SurveyReviewPDF.java:967)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.dohmh.wtchr.portal.servlets.PDFGeneratorFilter.doFilter(PDFGeneratorFilter.java:46)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java(Compiled Code))
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java(Compiled Code))
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java(Compiled Code))
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    I think you’re right that the problem occurs before invoking PD4ML. We debugged line by line through the invoking JSP. In the cases when the app fails we found a JSF call that also fails (it’s trying to access a managed bean from another scope). Since it works sometimes, I guess that specific line is not at fault but that something else has made the desired bean go away.

    But who’s clobbering the session?

    in reply to: Newbie question: How to page break
    #27862

    The main PD4ML page break tag is , however there are environments where the tag syntax may be reported as an error.

    • Some JSP containers do not allow dots in the tag name, so PD4ML JSP taglib includes the tag synonym . But take into account: the tag works only in JSP.
    • In XHTML and XSL world “pd4ml” namespace may cause validation problems. For the case later we introduced yet another tag synonym

    Also CSS offers some ways to break page. For example: page-break-before: always applied to a block element (

    ,

    etc)
    in reply to: Newbie question: How to page break
    #27863

    Thanks for the reply. Unfortunately, using also causes our processor to barf. I’ve got a workaround in the Java code, but I would have preferred not to have to go that route. But, at least it works.

    Thanks again.

    in reply to: Newbie question: How to page break
    #27864

    Well, XHTML tries to close tags. Try

    in reply to: Newbie question: How to page break
    #27865

    Yup tried that and a few other permutations…didn’t work, but thanks again.

    in reply to: HTML/CSS rendering issues
    #26337

    Selecting an element based on multiple elements doesn’t appera to work. For example div.a.b {font-weight: bold} isn’t possible with pd4ml.

    Is there a workound for this problem?

    Reto

    <?xml version='1.0' encoding='utf-8' ?><br /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br /> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'><br /> <head><br /> <meta content='text/html;charset=UTF-8' http-equiv='Content-Type' /><br /> <style><br /> body .x div.a.b {<br /> color: green; }<br /> </style><br /> </head><br /> <body><br /> <div class='x y'><br /> <div class='a b c d'><br /> asdfsadf<br /> </div><br /> </div><br /> </body><br /> </html>

    in reply to: CSS Issues – possible other java css parser?
    #27399

    I’m trying to convert a document that was created from an Excel spreadsheet.
    The html renders fine in IE or Firefox, but the result looks like column widths and spans were ignored. The other noticeable issue is an extra page break at the end.

    in reply to: Regarding direct print through default printer & Preview
Viewing 15 posts - 421 through 435 (of 4,246 total)