PDF Rendering Inconsistently

Post Author: i3Mike
CA Forum: Deployment
Summary: I have a small web application that uses Visual Studio 2005 to render a few Crytsal Reports in the browser as PDFs.  The report renders fine on my development machine (Windows XP Pro) but have issues when I deploy it to Windows Server 2003 (with CR runtime installed).  The fonts seem a little bigger (mostly using variations of Arial) and the margins seem a little different.  This basically causes things to wrap a little differently and hence I get some undesirable page overflows.   The report correctly renders on my dev PC with 8 pages.  On the Windows 2003 server it has 12 pages (due to some overflows).  For an additional test I also deployed the site to my home PC (Windows XP Media Center edition) and got slightly different results.  There, the report rendered with 9 pages (only one overflow).  I found I could sort of "fix" the problem (on my home PC) by setting the page margins to all 0s! Background: I have about six Crystal Reports that I consolidated (as subreports) into a single report so that the users wouldn't have to run six separate reports.  For the record, these Crystal Reports were originally created in Crystal 6.  I do have one 3OF9 barcode font that is not a standard Windows font but is installed on both machines and seems to render fine. Here is the basic code I use to generate the PDF and push it to the browser:        crDoc = new ReportDocument();        crDoc.Load(Server.MapPath("~/ReportDefs/Project.rpt"));        crDoc.SetDataSource(ds);        crDoc.Refresh();        Response.Clear();        Response.ContentType = "application/pdf";                crDoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, null);  In the web.config the assemblies are at level: 10.2.3600.0For kicks I also tried the Visual Studio 2008 runtime (Crystal 10.5???)  assembly version 10.5.3700.0 -- same thing.Comparing the summary information in the PDFs, everything looks OK. Any ideas on how to fix this mess? 

So this is Docupresentment which is running Documaker gendata. There are a few possibilities when this setup has problems which might show as "inconsistent" output of PDF.
If you have more than one configuration that you are using, more then one CONFIG attachment variable sent to IDS.
Number one, the value of CONFIG. Make sure it is the right one and the INI files specified for this CONFIG are the ones you expect to be using.
Number two, HTTP ports assigned to IDS to communicate with gendata. Make sure the port ranges between different CONFIGs do not overlap.
To test the ports you could temporarily set the IDS instances to 1 and set maxconfigs for running gendata to 1 and see if problem goes away.
Another possibility - you have another IDS somewhere (maybe on the same computer, maybe not) that is processing you requests, pointing to the same queues. To test if if this is the case - stop the IDS you think you are using and send the request. If you get a reply instead of timeout - you have this issue. The return message from IDS will have the computer name to help identify where this one is running.
If nothing helps, there are debug INI options that can be enabled to track down what else is not working right. Documented in the same place where RPD request is documented.

Similar Messages

  • PDF Rendering in EP6

    Hello,
    I am integrating XMLMILL (www.xmlmill.com) into EP6 to provide PDF rendering on the fly from xml+xsl data.
    I finally got it working and I am now able to render impressive PDF files but seems xmlmill is not fully compatible with EP6 from different perpectives: xml-xstl parsers/transformes, logging subsystem and class loading (retrieval of resources) as well as compatibility with PAR deployment process.
    Is there anybody else that has tried this tool or a similar one into EP6?
    Would like to share your experiences.
    Thanks in advanve & Regards
    Vitaliano Trecca

    Yes we also use a tool to transform XML into PDF from Apche (FOP project) and we have the same problems as you (incompatibility between Apache libraries and EP6 libraries). In EP5 it worked fine since the inqmy libraries were not automatically loaded at runtime !
    SAP people from the development are actually working on this problem. I'll keep you informed if they found a workaround for this.
    Xavier

  • PDF-Rendering is very slow

    Hi,
    on our local test-environment with CF 8.01 we have no problem to create a pdf with cfdocument-tag.
    <cfdocument format="pdf"
                    encryption = "128-bit"
                    permissions="AllowCopy,AllowPrinting"
                    unit="cm"
                    scale="100"
                    backgroundVisible="yes"
                    marginleft="1"
                    marginright="1"
                    filename="#url.pk_id#.pdf"
                    pageType="A4">
              <cfdocumentitem type="header">
              ... content of the pdf
    </cfdocument>
    but our productive-server (the same CF-version as the local testserver) is working very slow, and when I say slow I mean minutes not a view seconds more.
    I have no idea where this discrepance is comming from, especially as we could observe the pdf-rendering on fusion-reactor witch makes it rather improbable that - as we first thought - our firewall is slowing down the process.
    does anyone out there has an idea where the problem could be located or had someone in this forum experienced a simular pdf-pitfall?
    thanks for yout efforts.

    Hi Guys I work with a lot of pdf files with being a student at uni and not sure these tips might help. 
    Try an app called skim which is free it handles pdfs nicely and looks similar to the preview app. 
    Also if a pdf is slow to scroll try selecting all the pages goto file print.  Then on the bottom left hand side of the print window select pdf and then save as pdf.  I have found on some pdfs (usually the ones in black and white and look like a photo copy) using the the print save as pdf option has then allowed me to view a pdf fine in the preview app without any issues.  Hope this is useful.
    I suspect its to do with pixels per inch or dots per inch of the document.

  • Office Web Application PDF rendering poor quality

    Hi
    We have a customer using SharePoint 2013 and Office Web Application to provide PDF and WORD documents to partners. Now we ran into the problem, that all PDF are rendered in such a poor quality, that it is hard to read the PDF document, because it
    is so blured. DOCX documents are also compressed, but readable. If the user downloads the PDF file, the Quality of the PDF is good.
    That is how it looks in Office web application:
    This is the same file downloaded and opened with the pdf client:
    Is there any solution for this problem? Does Microsoft planned any update on this?
    Thanks
    Michael
    in2brain

    Hi Michael,
    Are you using a monitor with high resolution?
    Per the following information, if you are using a monitor with high resolution, the pdf rendered by OWA from browser will look blurry, as a workaround you can open PDF file using PDF client software currently.
    "The Word Viewer in the WACs converts documents (including PDFs) to PNG images at 96 DPI which is likely why the users are seeing blurry text if they are viewing documents on a high DPI device/monitor (>200 DPI)."
    Thanks
    Daniel Yang
    TechNet Community Support

  • Preview PDF Rendering

    When viewing PDFs (created from InDesign) in Preview (or Quicklook), oftentimes they don't render as they should if transparencies or other blending modes are used.
    Any clues how to fix this (if possible)? Or MUST I always use Acrobat to view PDFs (which takes longer to open).
    Thanks.
    -Aaron

    I have the same problem when saving Illustrator files as PDF.
    The PDF renderer in Snow Leopard has trouble with the way Adobe compresses bitmaps inside the PDF. Leopard works fine on the same files, and Acrobat of course.
    A solution is -- in the Adobe PDF settings dialog -- to compress the contained bitmaps using ZIP and not JPEG.
    This is an annoying bug, which Apple and Adobe should resolve quickly.
    Jörg

  • Slower pdf rendering since v26?

    I noticed a slower PDF rendering (iOS) on v26 compared to earlier versions. Did anyone have same behaviors?

    I would suspect you have not tried reading a .PDF file on your Windows 10 TP system because there is in fact a WindowsApp called Reader as noted by MakeMeLaugh that does indeed read .PDF files.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • HT6065 Adobe Reader blocks PDF rendering in Safari

    Adobe Reader [plugin] blocks PDF rendering in Safari. Error Message tells user to start Adobe Reader and accept the EULA, then restart Safari. 
    MBP 15.4" Mid 2012 Retina 8GB DDR3 1600 Mhz Ram Running 10.9.1 (build 13842).  I have AR installed--not sure where the EULA is... Help is no help...
    Seems to happen with some sites that use web forms.
    Any ideas?

    Forgot to add--PDF forms from websites pull up fine in FireFox 27.0.1 and Chrome 32.0.1700.77.  So, it appears to be a Safari issue... Or perhaps an issue with a plug-in or extension...? 

  • PDF renderer for next release please

    I would like to add to the
    discussion
    on the old labs forum.
    AIR would be hugely more useful to me if it could display a
    pdf natively. This would mean bundling a basic pdf renderer with
    AIR. This needn't add much to the AIR runtime (e.g. FoxIt reader is
    only 2mb).
    As mentioned in the linked discussion, AIR could check for
    the presence of Adobe Reader x.x and / or full Acrobat and then
    make use of them if required. But the ability to simply display
    (and hence print) pdf's without launching an additional application
    and without worrying about what the user might have installed on
    various OS's would IMHO make AIR a more wonderful thing!
    Here's hoping..

    The release notes state that you can display a pdf natively,
    ONLY if the client has the most current 8.1 reader. Unfortunately,
    I have not yet found a method for doing this, despite having the
    most current reader...
    Regardless, I second this proposal, and I do not understand
    why Adobe would essentially leave one of the core products of AIR
    out of the 1.0 release. I would have assumed that the first alpha
    would have been able to not only render a pdf to the display, but
    also write a pdf out to the client machine. Understandably, this
    may be easier said than done, but should have been done before a
    1.0 release.
    Also, I do not understand why 2/3 of the release notes are
    known issues many of which should have been taken care of prior to
    release. I do not understand why anyone would knowingly release a
    buggy product.

  • Inline XML Publisher PDF rendered using IFRAME in Self Service

    Hi,
    We have created an XML Publisher Report (PDF) which renders inline in a SelfService Page.
    When we click on the Save Icon in the IFRAME, The File Name is really long including the Applications URL, DBC File, File Name etc.
    Ex: http___it21.marvell.com_8005_OA_HTML_xdo_doc_display.jsp_dbcName=it21_devt&fileName=MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf.pdf&mFileLength=50068&p_output=_devt_prod_prodcomn_html_fwk_t_MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf
    The requirement is to change the File Name to PerformanceAppraisal.pdf
    Below is the code used to render the inline PDF.
    - The XMLString has the complete XML generated.
    public void renderInlinePDF(OAPageContext pageContext, OAWebBean webBean, OAApplicationModule am, String XMLString, String templateName)
    System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- XMLString "+ XMLString);
    System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- templateName "+ templateName);
    BlobDomain xmlData = new BlobDomain(XMLString.getBytes() );
    pageContext.writeDiagnostics(pageContext, "------------- xmlData : "+xmlData.toString(), 4);
    pageContext.writeDiagnostics(pageContext, "------------------------------------------------------------------- ", 4);
    String redirectURL = null;
    try
    pageContext.writeDiagnostics(pageContext, "------------- redirectURL 1 : "+redirectURL, 4);
    redirectURL = DocumentHelper.getOutputURL(
    pageContext
    ,"XXGT"
    ,templateName
    ,xmlData.getBinaryStream()
    ,"PDF"
    ,null
    ,"en"
    ,"US"
    pageContext.writeDiagnostics(pageContext, "------------- redirectURL 2 : "+redirectURL, 4);
    System.out.println("---MVLReviewPerformanceXMLUtil---------------------------- redirectURL = "+ redirectURL);
    catch(Exception e )
    throw new OAException("Error in redirect");
    OAHTMLWebBean frame=(OAHTMLWebBean)webBean.findChildRecursive("IFRAME");
    pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL"+frame, 4);
    if (frame == null)
    pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL", 4);
    OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext,HTML_WEB_BEAN, null, "IFRAME");
    outRegion.setHTMLAttributeValue("src",redirectURL);
    outRegion.setHTMLAttributeValue("width", "100%");
    outRegion.setHTMLAttributeValue("height", "100%");
    outRegion.setHTMLAttributeValue("title","PerformanceReview");
    outRegion.setHTMLAttributeValue("name","PerformanceReview");
    OAWebBean iFramePlaceHolder = (OAWebBean) webBean.findChildRecursive("IFrameRegionPlaceHolder");
    iFramePlaceHolder.addIndexedChild(outRegion);
    // pageContext.getPageLayoutBean().addIndexedChild(outRegion);
    pageContext.writeDiagnostics(pageContext, "------------- IFRAME AddIndexedChild", 4);
    XML Publisher version 5.6.3
    Any help in this regard will be highly appreciated.
    Thanks,
    Sujay

    Thanks Balusc!!
    I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
    <h:form id="CaseLookUp">
         <%
         String path = request.getContextPath()+"";
         out.print(path);
         %>
    <iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
         </h:form>

  • ReportViewer 2014 PDF rendering and search problems (glyphs / rectangles when text copied to MS Word)

    I'm using ReportViewer from MSSQL 2014 express in my experiment, use RDLC /local reports/.
    I use slovak char-set (šťďňľřôä) - international chars.
    When rendering to PDF I use HumanReadable PDF + Use font sub-set embedding.
    The report is viewed on the same server as it is generated.
    The generaed PDF prints correctly,
    but some words cannot be found inside PDF /with ctrl+f/ and
    when I copy paste the content to MS Word, those words (it§s chars) that cannot be found are replaced by
    rectangles.
    Any clue why it this so and how to avoid this issue?
    Is there a difference between rendering reports locally /via MSSQL report viewer/ or on the server?
    Thanx.

    Adobe Professional 8.1.2 - similar problem. Word converted to PDF. Three paragraphs separated by a single space line break. When paragraphs are copied (either with or without line formatting) the lines do not appear between the paragraphs in the pasted material (in Outlook or Word). Only way I can find to make them appear is to make each paragraph a numbered list. Then it works. What is going on? I have tried different formatting options in Word.

  • PDF prints inconsistently

    Hello fellow documaker users,
    I would just like to know what the problem would be when i generate a pdf, sometimes it generates, other times it doesn't same system and settings.
    Please advise, can't think where the problem would be? maybe in the RunRP group? cause i can't believe it is a pdf setting?
    Thank you very much for your effort.

    So this is Docupresentment which is running Documaker gendata. There are a few possibilities when this setup has problems which might show as "inconsistent" output of PDF.
    If you have more than one configuration that you are using, more then one CONFIG attachment variable sent to IDS.
    Number one, the value of CONFIG. Make sure it is the right one and the INI files specified for this CONFIG are the ones you expect to be using.
    Number two, HTTP ports assigned to IDS to communicate with gendata. Make sure the port ranges between different CONFIGs do not overlap.
    To test the ports you could temporarily set the IDS instances to 1 and set maxconfigs for running gendata to 1 and see if problem goes away.
    Another possibility - you have another IDS somewhere (maybe on the same computer, maybe not) that is processing you requests, pointing to the same queues. To test if if this is the case - stop the IDS you think you are using and send the request. If you get a reply instead of timeout - you have this issue. The return message from IDS will have the computer name to help identify where this one is running.
    If nothing helps, there are debug INI options that can be enabled to track down what else is not working right. Documented in the same place where RPD request is documented.

  • PDF rendering sometimes  terrible

    Hi
    Have some troubles with rendering PDF Documents... many look
    fine - some are really messed up.
    Spent some hours finding out why, and found some approches
    1. Embedded Font have to be embedded Subgroup, not just
    Emebedded??
    2. creation source is an max, not an PC.
    Or - big question do the developers, and the community - i
    missed some other reason.
    gretts

    I was not aware that webkit was accessible from actionscript, but now I see it is -- that's pretty nice.
    But what I am saying, is that you can already render html and write pdf inside actionscript without using alchemy.  If you are not familiar with c/c++, this is going to be a much easier route.
    If you are familiar with c/c++, adapting existing libraries is, while time-consuming, not that difficult -- that is the point of alchemy.  The library and all its dependencies must be reconfigured and remade inside the alchemy environment, and hooks (gluegen) must be written to interface with all the necessary functions of the library.
    There are quirks one runs into when adapting large amounts of code with alchemy, having to do with bugs in the version of llvm used by alchemy or things the developers did not expect you to do.  For example, alchemy pretends to be bsd on i386, so code you compile that checks for i386 to embed architecture-specific assembler will fail unless modified.  I am sure I have not personally run into all the quirks, and hence cannot give an exhuastive list, and I doubt anyone can.  If you are not very experienced with c/c++, these quirks may end up being show-stoppers for you.
    If you are lucky, though -- most small libraries compile in alchemy without a hitch.  You still need enough c/c++ understanding to work with gluegen to interface with them.

  • PDF rendering, printing & splitting

    Hi all,
    I'm a newer of PDF developer. And there's a trouble with me. I wonder if anyone could help me or give me any hint. I'll aprreciate him much.
    What I want to do are opening a PDF file and rendering it in my own application and sharing it with others. Development tools is VC++ 6.0, platform is windows. Funcnalities required include rendering or printing a specific page of pdf. My application should surpport WTL, independent of MFC, .netframwork. Besides, I want split a PDF file by page and send the content of each page to other application(the same with mine) to share with my opening document and keep synchronous while I turn to any page.
    I'm looking forward a instruction of which technology is most fit for me? Acrobat sdk or pdflib sdk? It's better if my application dosen't depend on Acrobat installation on client's computer. I thinks only a few functions needed to meet my requirment and a few pieces of codes can resolve my problem. Is it right?
    Best regards.
    Jack.lin
    MSN:[email protected]
    Hangzhou, China.

    If you wish a solution that does not require Acrobat being installed, that would be the Adobe PDFLibrary. Contact Datalogics (
    ) for licensing information.
    Leonard

  • Cfdocument pdf rendering problem

    When you create a PDF using cfdocument, the <I>
    </I> tag and <B> </B> tag renders incorrectly
    sometimes. When it's at the edge of the table, the text inside the
    tags is repeated twice. And sometimes, it truncates the space or
    spaces before the tag. Or it would overlap the tagged text over the
    text before the tag. Has anyone encountered any of these
    problems?

    Post Author: vtec
    CA Forum: Exporting
    We are having a similar issue. Importing a perfectly justified word document as an OLE Object in Crystal.  The document seems perfect in the viewer but when exported to PDF, the text seems to overlap each other and there are huge spaces between words.  Using Crystal 11 release 2 (version 11.5.8.826).  Any help would be greatly appreciated.

  • Subpixel pdf rendering for evince

    Here is a simple patch for evince to enable sub-pixel rendering of pdf files.
    First you should replace cairo with either aur/cairo-cleartype or aur/cairo-glitz-cleartype,
    otherwise you will get ugly color fringes on your glyphs.
    Then unpack the source with makepkg -o.
    Edit the following patch. (e.g. some people might want  CAIRO_SUBPIXEL_ORDER_VRGB
    intead of  CAIRO_SUBPIXEL_ORDER_RGB. You can also choose different hinting styles:
    CAIRO_HINT_STYLE_SLIGHT,  CAIRO_HINT_STYLE_FULL or CAIRO_HINT_STYLE_NONE.
    --- ev-poppler.cc 2009-09-21 15:12:26.000000000 +0200
    +++ /home/markus/tmp/ev-poppler.cc 2009-10-17 14:04:21.000000000 +0200
    @@ -487,10 +487,25 @@
    #ifdef HAVE_POPPLER_PAGE_RENDER
    cairo_t *cr;
    + cairo_font_options_t *options;
    +
    surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
    width, height);
    + memset (cairo_image_surface_get_data (surface), 0xff,
    + cairo_image_surface_get_height (surface) *
    + cairo_image_surface_get_stride (surface));
    +
    + options = cairo_font_options_create ();
    + cairo_surface_get_font_options (surface, options);
    + cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_SUBPIXEL);
    + cairo_font_options_set_subpixel_order (options, CAIRO_SUBPIXEL_ORDER_RGB);
    + cairo_font_options_set_hint_style (options, CAIRO_HINT_STYLE_NONE);
    +
    cr = cairo_create (surface);
    + cairo_set_font_options (cr, options);
    + cairo_font_options_destroy (options);
    +
    switch (rc->rotation) {
    case 90:
    then hand-apply this patch in abs/extra/evince/src/evince-2.28.0/backend/pdf
    and finally build the package with makepkg -e.

    Yeah I tried mupdf, its rendering is actually worse.
    I tried different computers and distros btw, it all looks the same no matter where and what I used. So I figure, there's nothing wrong with my config, it's just (currently?) not possible to have a better rendering without using acroread. Maybe I'll stick to it, but it's a pain in the ass to "maintain" as it's 32-bit and only in AUR. Also not open. And, even worse, adobe.
    Thanks anyway.

Maybe you are looking for

  • Can a pdf link to an external file

    ... so changing the original file changes the pdf? I've got a dinner riding on this. My co-worker says don't change that Illustrator .eps file - all our pdfs are linked to it! You'll  mess them up! I say - what? no way...  pdf's aren't linked to exte

  • Folder with question mark, cannot reinstall 10.4

    Yesterday when I open my computer it was frozen. After rebooting it a folder with a question mark came up. After I tried to reinstall the original software (10.4) the computer came up with a message saying that the software cannot be reinstalled. The

  • How to completely uninstall a program?

    I already uninstall a application on my phone and install it again but when i open it the previous settings is not change.my question now is how to uninstall it completely not only in my application manager but also in my C or E drive directory to in

  • Usb drive automount with drive's Name

    I've read http://wiki.archlinux.org/index.php/Udev#Udev_Tricks so now usb drives are automounted as /mnt/usbhd-sda1 (or something similar). But I want them to mount as /mnt/usb-drive-name where usb-drive-name is auto-detected (not preentered by hand)

  • Exchange 2013 Server Migration

    Hello, We are in the process of migrating from an Exchange 2003 server to an Exchange 2013 SP1 server. The EXCH2003 server is in a separate domain environment than the new EXCH2013 server. We plan to export all mail from the EXCH2003 server and impor