Displaying PDF files created with BLS in xMII 12

Hi all,
we are creating dynamic PDF Reports and store them in an xMII Web folder like "/Project/WEB/PDFFiles/".
The problem is that I cannot display the PDF File after creation to the user, because when I use the URL it says an error like "file cannot be found". Only after I open the Workbench and "publish" the file, the URL works and the PDF is opened.
Can I execute the "publish" command from the web page via JavaScript? Or from the BLS after it has created the PDF?
Regards
Michael

Hi, Michael.
The rendered PDF document is stored in a "string" parameter.    Create a transaction output parameter of type string, and name it "PDFContent".  Now, to stream the data back, create a hyperlink of the format:
http://<yourserver:yourport>/<this depends on your version>/Runner?Transaction=YourFolder/YourTransaction&OutputParameter=PDFContent&OutputContentType=application/pdf
When the user clicks on this link, the PDF will be generated and sent to the browser and should automatically open the Adobe PDF Reader.  Note that this technique can be used with all kinds of different content (I've done the same for BLS-created HTML, SVG, PDF, CSV, and even Minitab statistical files).
In some cases, you may need to "trick" IE into forcing an open of the PDF viewer, in which case you might want to tweak the URL as follows:
http://<yourserver:yourport>/<this depends on your version>/Runner?Transaction=YourFolder/YourTransaction&OutputParameter=PDFContent&OutputContentType=application/pdf&PDFContent.pdf
Sometimes IE uses the ".pdf" at the end, sometimes it uses the content type/mime type.  Seems inconsistent.
Best regards,
Rick

Similar Messages

  • PDF files created with Primo PDF or Progeny PDF printer

    I am working on a computer with Windows Vista on it and I now have a problem when I create a PDF using the Primo PDF printer, or the Progeny PDF printer -- if Adobe is already open with a file, the new file appears with fuzzy colors. When I close Adobe, the files seem normal. Any idea why this happens? Has anybody had the same problem?

    Not a known problem. And the "already launched" problem points to an issue with Reader.
    Please submit some samples with a bug report for Reader to debug.
    Here is what the issue looks like (click to zoom) :
    On the left side is the PDF file opened with no other instances of Adobe Reader open. On the right side is what the exact same file looks like when opened after another instance of Reader (displaying another PDF file) was already open.
    It's as if the font rendering engine was incapable of multi-threading. Like Reader can only render the font properly if the PDF file in question is the only one it's got in RAM.
    Worth noting :
    Opening a 2nd PDF file with distorted fonts does not affect the first open PDF. That one continues to display normally. Only every subsequent instance of Reader will have this issue.
    Files were saved normally via Photoshop CS5, although this issue has been present for at least 2-3 versions if not more (only started saving PDF's around that time - it's quite possible this was ALWAYS an issue).
    This is strictly a SCREEN RENDERING ISSUE. The PDF file prints to paper just fine with uncorrupted fonts no matter how it looks on-screen.
    As mentioned earlier in the thread, this happens across multiple computers. Whether I create the PDF via Photoshop CS3 in WinXP or via Photoshop CS5 in Windows 7 on a completely different computer... it will have the same issues. Tried it at work, too -- miles away from home. Same issues. Graphic cards are also from different makes, and display the same issue.
    This happens to every single font in the document, regardless of how common or obscure a font it is. In this case, it's Helvetica Neue.
    Again, because this important : even if the fonts look distorted on-screen, they will print out on paper just fine. This is a screen rendering issue.
    Default PDF settings, no layers, vector data non-rasterized.
    Hope this helps.

  • Pdf file created with zero bytes

    Hi Team,
               We have requirement of sending pdf file to webservice and after we will process that pdf file using Abbyy reader. We have issue in getting the pdf file content.
               In web service, pdf file content is received with header information and body content..while creating, pdf file is created with empty...We have used C# WCF webservice..For more information, kindly refer the C# forum code: https://social.msdn.microsoft.com/Forums/vstudio/en-US/b6a05717-2b17-4408-a606-ccbe104e132 4/need-webservice-code?forum=wcf

    In your browser make sure the default PDF Viewer is Adobe Reader

  • Uploading pdf files created with LiveCycle Designer ES4

    I uploaded some pdf files to my server that were designed with LiveCycle Designer ES4.  I can open them directly from the server using my SmartFTP program, however when I
    try to download using the URL, I get the following message:
    Please wait. . .
    If this message is not eventually replaced by the proper contenst of teh document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows . . . .
    I have both the latest version of Adobe Reader and Acrobat Pro XI installed on the computer.
    Any thoughts??

    Hi,
    Only if the form has been Reader Enabled before it is sent out to the user with Reader.
    There are two ways of Reader Enabling the form. One using Acrobat Standard v9 or Acrobat Professional v8 (both have license restrictions). The other is to use LC Reader Extensions ES2, which is a server product (additional costs).
    Some info here:
    http://www.assuredynamics.com/index.php/2010/11/using-livecycle-forms-in-acrobat-and-reade r/
    A search of the forums for "Reader Extensions" or "Reader Enable" will give more information.
    Hope that helps,
    Niall
    Assure Dynamics

  • Why does my Acrobat IX not open PDF files created with my Adobe CreatePDF application?

    My Acrobat IX will not open PDF files that I create with my Adobe CreatePDF application

    Thanks for answering ... Long answer sorry ... recently upgraded from XP to Windows 7.  With XP I could create PDFs with/for any document I created ... I think the XP App was Acrobate Complete as well as I could print directly to a PDF file. In any case, I was always able to creat PDFs.  Since upgrading to Windows 7, I lost my ability to create PDF files by conversion or by printing directly to PDF format. Therefore, I purchased the Adobe CreatePDF application from Adobe for about $100.  However all Adobe CreatePDF files have a different screen icon and my Acrobate XI supplied with my new Windows 7 intsall does nor recognize the Adobe CreatePDF created files. I am guessing but I suspect the Adobe CreatePDF app is creating Postscript print files and not Windows compatible print files.  I would like to tell Adobe about this Bug or failure, but it seems I am unable to contact Adobe directly and talk/chat with a human. 

  • Undesired multiple pdf files created with multipage print.  Acrobat 9.5

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

    Hello,
    I have a 20 tab spreadsheet in Excel 2010, 18 tabs of which are presentation pages.
    Most are landscape letter, 3 or 6 are landscape legal
    The first time around, I selected the 18 tabs, file/printed to pdf, and I ended up with a perfect pdf, All 18 pages, 3 of which were legal size.
    I change department names, change a bunch of data, added a few more tabs.
    When I commence the same print routine, selecting all tabs to be included, I now get one 16 page pdf, a number of 1 page pdf's, and one three-page pdf.  Each time the print routine asks for the file name.  8 times in total, instead of just once.  What triggers this unwanted multi file split, and how can I prevent it?
    Thank you for any and all suggestions,

  • Cannot upload a pdf file created with LifeCycle designer ES 10.0

    Hi
    I am trying to upload a pdf document but each time I have the following error message:
    I tried many tricks like changing the acrobat plugin and using the default PDF viewer instead, I uninstalled and reinstalled all the Firefox plugins, I tried to upload it from IE... but none of these succeeded. I have the latest version of acrobat reader 11.0.7 and the pdf document id secured by a password and was generated using Adobe LifeCycle designer ES 10.0. How can I solve this issue? Thanks in advance

    In your browser make sure the default PDF Viewer is Adobe Reader

  • Problem with PDF files created by Indesign

    PDF files created by Adobe Indesign come up as blank pages whereas PDF files created by Mac OS X or Apple's Pages display OK. Is there a difference in the way PDF files are created?

    No problem with Adobe Reader 8 or 9 .

  • How to display pdf file with java code?

    Hi All,
    i have a jsp pagein that page if i click one icon then my backing bean method will call and that method will create pdf document and write some the content in that file and now i want to display that generated pdf document.
    it should look like you have pressed one icon and it displayed pdf file to you to view.
    java code below:
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "filename=\"" + temppdfFile);
    resp.encodeRedirectURL(temppdfFile.getAbsolutePath());
    resp.setContentType("application/pdf");
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(temppdfFile, out);
    out.flush();
    and above temppdfFile is my generated pdf file.
    when i am executing this code, it was opening dialog box for save and cancel for the file, but the name of the file it was showing me the "jsp file name" with no file extention (in wich jsp file i am calling my backing bean method) and type is "Unknown File type" and from is "local host"
    it was not showing me open option so i am saving that file then that file saved as a pdffile with tha name of my jsp file and there is nothing in that file(i.e. empty file).
    what is the solution for this. there is any wrong in my code.
    Please suggest me.
    Thanks in advance
    Indira

    public Object buildBarCodes() throws Exception
    File bulkBarcodes = null;
    String tempPDFFile = this.makeTempDir();
    File tempDir = new File("BulkPDF_Files_Print");
    if(!tempDir.exists())
    tempDir.mkdir();
    bulkBarcodes = File.createTempFile
    (tempPDFFile, ".pdf", tempDir);
    //bulkBarcodes = new File(tempDir, tempPDFFile+"BulkBarcode"+"."+"pdf");
    if(!bulkBarcodes.exists())
    bulkBarcodes.createNewFile();
    Document document = new Document();
    FileOutputStream combinedOutput = new FileOutputStream(bulkBarcodes);
    PdfWriter.getInstance(document, combinedOutput);
    document.open();
    document.add(new Paragraph("\n"));
    document.add(new Paragraph("\n"));
    Image image = Image.getInstance(bc.generateBarcodeBytes(bc.getBarcode()));
    document.add(image);
    combinedOutput.flush();
    document.close();
    combinedOutput.close();
    FacesContext facesc = FacesContext.getCurrentInstance();
    ExternalContext ec = facesc.getExternalContext();
    HttpServletResponse resp = (HttpServletResponse) ec.getResponse();
    resp.setHeader("Content-Disposition", "inline: BulkBarcodes.pdf");
    resp.encodeRedirectURL(bulkBarcodes.getAbsolutePath());
    resp.setContentType("application/pdf");
    resp.setBufferSize(10000000);
    ServletOutputStream out = resp.getOutputStream();
    ServletUtils.returnFile(bulkBarcodes, out);
    out.flush();
    return "success";
    This is my action method which will call when ever i press a button in my jsp page.
    This method will create the barcode for the given barcode number and write that barcode image in pdf file
    (i saw that pdf file which i have created through my above method, This PDF file opening when i was opening manually and the data init that is also correct means successfully it writes the mage of that barcode)
    This method taking the jsp file to open because as earlier i said it was trying to open unknown file type document and i saved that file and opended with editplus and that was the jsp file in which file i am calling my action method I mean to say it was not taking the pdf file which i have created above it was taking the jsp file

  • Display pdf file using webdynpro abap

    Hi Friends,
    My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action
    button( in the first page) using webdynpro abap.
    Can anybody explain the step by step procedure as I am new to this area.
    Thanks in advance.
    Reagrds,
    Nagaraju

    Hi,
    Check this.,
    Creating a PDF file in webdynpro abap.
    Web Dynpro ABAP display pdf
    hope this helps u.,
    Thanks & Regards
    Kiran

  • I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it.I have OX S yosemite, I unistalled adobe acrobat, I closed safary and I installed the new version of adobe acrobat.

    Dear everyone
    I need to configure Acrobat to display PDF files in Safari, but I have a lot of troubles to do it.
    I read a european commission document explaining that
    http://ec.europa.eu/research/participants/data/support/sep_usermanual.pdf
    If Safari does not display pdf forms in the browser window, uninstall all older versions of Adobe Reader and download the most recent one. First close Safari and then install Reader. Launch Safari and you ought to be able to open the pdf files inside the Safari window. If you install Adobe Reader 10.1.x without first closing Safari, Safari will not display the pdf file inside its browser window until it is re-launched. For further help, please see http://helpx.adobe.com/acrobat/kb/troubleshoot-safari-plug-acrobat-x.html
    I have OX S yosemite, I unistalled adobe acrobat, I closed safary and I installed the new version of adobe acrobat
    but when I open a web page that I need to allow me to display and modify PDF files it is not working.
    I checked the following web page
    Troubleshoot Safari plug-in | Acrobat X, Reader X
    that is recommending the following:
    The AdobePDFViewer plug-in is used to display PDF files in Safari using Acrobat and Reader.
    This plug-in is installed as part of the Acrobat X or Reader X installation. The location of this plug-in is:
    /Library/Internet Plug-ins/AdobePDFViewer.plugin
    but after the new installation with this folder is completely empty and I am still
    unable to open these pdf.
    Does anybody knows anything else I can do?
    Best regards
    Ramon

    Moving this discussion to the Adobe Reader forum.

  • Pdf file created in Word 2008 will not open in Acrobat 8.2.6 or any other Adobe program

    I have created a 12 page newsletter in Microsoft Word Publisher 2008 and have done so many times before with no problem. Today, I have tried to save it as a .pdf file both in Save As and through the printer. Each .pdf file created in Word will not open in Acrobat 8.2.6, Photoshop C3, Adobe Reader  nor any other Adobe software.
    When I go to open it in Acrobat, my Mac gives me the spinning rainbow. If I try to click on the file, I get a watch and then Acrobat crashes or I have to force quit the software. I really need to convert this file and get it to the printer. Any advice???
    Mac OS X 10.6.7
    Word 08 12.2.8
    Acrobat 8.2.6
    Adobe Reader 10.0.0

    Here is a better example.
    https://www.calcerts.com/PBR1.pdf
    is the original PDF file that is uploaded by a user.  Note that it is only 48kb in size.
    I take the file, add a couple of watermarks and a footer for each page as well as a small image on the last page, add security on it and BAM, the file:
    https://www.calcerts.com/PBR1_AFTER.pdf
    is now 1.5 MB and it takes a LONG time to print.
    Thoughts?

  • Does anyone know why after upgrading to Mavericks, Safari will not display PDF files, is there a solution?

    I cannot get Safari to display PDF files, it shows a blank screen with the comment that Safri has blocked PDF, however when you unblock it still does not show the PDF, I have had to rely on Firefox for this, which I find not too good. Any help very much appreciated.

    Update to 10.9.1
    Adobe Reader
    http://helpx.adobe.com/acrobat/kb/blocked-plugin-alert-safari-7.html
    Best.

  • How to display pdf file in windows phone 8 silver light application?

    Hi,
    I am developing windows phone 8 silver light application . For my app I want to display pdf files . Is there any default controls to display pdf files ?
    I don't want to display using launchers , I want to display with in the app.
    any help,
    Thanks..
    Suresh.M

    Probably this should give you a fair idea : How to view PDF file inside an Windows Phone application?
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • PDF file created from Oracle Report is attached wrongly

    Hi,
    Please help. It is very urgent.
    I am using Oracle Developer 10gR2, Oracle Report 10.1.2 on Windows 2000.
    I would like to attach the PDF file created by Oracle Report to the Notification sent from Workflow.
    I use the following package procedure in my Workflow.
    procedure Create_File_Attachment (document_id   in varchar2, display_type  in varchar2, document      in out blob, document_type in out varchar2)
    is
         l_itemtype          varchar2(100);
         l_itemkey           varchar2(100);
         l_output_directory  varchar2(30);
         l_filename          varchar2(255);
         src_loc             bfile;
         bdoc                blob;
         src_offset          number := 1;
         dst_offset          number := 1;
         amount              number;
    begin
         l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
         l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
         l_output_directory := 'USR_TMP_DIR';
         l_filename := Wf_Engine.GetItemAttrText(l_itemtype, l_itemkey, 'ATR_FILENAME');
         src_loc := bfilename(l_output_directory,l_filename);
         dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
         dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
         dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
         dbms_lob.fileclose(src_loc);
         amount := dbms_lob.getLength(bdoc);
         dbms_lob.copy(document,bdoc,amount,1,1);
         document_type := 'application/pdf; name=attach.pdf';
    end Create_File_Attachment;Oracle Report created the PDF file correctly (original.pdf).
    I tried to attach the PDF into my Workflow.
    I can see the file is attached (attach.pdf), but it cannot be opened.
    The Adobe shows : 'A drawing error occured.' each time I open the attachment.
    I compare the original.pdf and the attach.pdf
    However, there is one specific difference
    - in original.pdf, the line started with '.' (single period)
    in attach.pdf, the line is started with '..' (two periods)
    Thus the attachment cannot be opened.
    After I delete the period, it can be opened.
    Question:
    - Has someone ever succeed in attaching the PDF created from Report?
    - Are the codes above is wrong?
    - Or perhaps the DBMS_LOB.LOADBLOBFROMFILE always double the single period on front of the line?
    - Is there any solution on this?
    Note:
    I have succeed in attaching PDF files unless the PDF created by the Report.
    Sorry for the long post.
    Please help. It is very urgent.
    Any help is appreciated.
    Many thanks,
    Buntoro

    The code looks absolutely good. I have the same code working in my system. Only difference is I use TRUE and DBMS_LOB.Session for the BLOB I use to read from the BFILE.
    I can suggest one more way to handle to binary attachments if you are on Oracle 9i DB are later versions.
    procedure attach_document (p_document_id   in varchar2,
                               p_display_type  in varchar2,
                               p_document      in out nocopy clob,
                               p_document_type in out nocopy varchar2)
    is
      l_nid        number;
      l_directory  varchar2(100);
      l_filename   varchar2(100);
      l_content_type varchar2(100);
      l_src_offset binary_integer := 1;
      l_dst_offset binary_integer := 1;
      l_err_msg    varchar2(100);
      l_amount     number;
      l_bfile BFILE;
      l_blob  BLOB;
      l_clob  CLOB;
      file_not_found exception;
      pragma EXCEPTION_INIT(file_not_found, -22288);
    begin
      l_nid := to_number(p_document_id);
      l_directory := trim(wf_notification.GetAttrText(l_nid, 'ATTR_DIRECTORY'));
      l_filename := trim(wf_notification.GetAttrText(l_nid, 'ATTR_FILENAME'));
      l_content_type := trim(wf_notification.GetAttrText(l_nid, 'ATTR_CONTENT_TYPE'));
      l_bfile := BFILENAME(l_directory, l_filename);
      dbms_lob.createtemporary(l_blob, true, dbms_lob.Session);
      dbms_lob.createtemporary(l_clob, true, dbms_lob.Session);
      begin
        dbms_lob.FileOpen(l_bfile, dbms_lob.File_Readonly);
      exception
        when file_not_found then
          l_err_msg := to_char(sqlcode)||' - Attachment File "'||l_filename||'" is not found.';
          raise_application_error(-20002, l_err_msg);
      end;
      dbms_lob.LoadBLOBFromFile(l_blob, l_bfile, dbms_lob.LobMaxSize, l_src_offset, l_dst_offset);
      dbms_lob.FileClose(l_bfile);
      -- Encode the BLOB content to BASE64 and attach to notification  
      wf_mail_util.EncodeBLOB(l_blob, l_clob);
      l_amount := dbms_lob.GetLength(l_clob);
      dbms_lob.Copy(p_document, l_clob, l_amount, 1, 1);
      -- Mention an appropriate Content Type so that Notification System
      -- understands the attachment content
      p_document_type := l_content_type||'; encoding=base64; name='||l_filename;
    end attach_document;Here I read the BLOB from the filesystem and base64 encode it before giving it to the Mailer. Please note that this is a PLSQLCLOB based attachment as against PLSQLBLOB that you are using.
    Thanks - Vijay

Maybe you are looking for

  • How can I connect my iphone to my computer with the new upgrades? My mac (old) cannot support the new itunes and my phone can't connect to it.

    I have a macbook that I purchased in 2007 with operating system Mac OS X Version 10.5.8. I recently did the new software upgrade on my iPhone and now my iPhone and my computer cannot connect. I tried downloading the newest iTunes but it is not suppor

  • HELP WITH ZEN MICRO PLAYL

    HELLO, I JUST PURCHASED MY ZEN MICRO MEDIA PLAYER AND DOWNLOAD MY MUSIC TO IT. WHEN I PICKED OUT A SONG TO START A PLAYLIST I NAMED THE NEW PLAYLIST AND THEN WHEN I WENT TO THE MAIN MENU TO ACCESS MY PLAYLIST IT LIST ALL MY SONGS. I AM NEW HERE AM I

  • Scrolling doesn't go all the way to the bottom

    Hi guys, I'm not sure if that's the normal behaviour, but when I use the trackpad two-finger scroll, it seems that the last bit of the trackpad doesn't work for scrolling. So when I scroll down, it stops before I reach the bottom side of the trackpad

  • Windows - Mac mixed environment: Excel file references, Windows Drive Letters

    I was suggested to ask my question on this forum.  Our company has used Windows PCs only. For various reasons, we are now switching to a Mixed (Mac and PC) environment.  All of our work files are stored and server from a central Windows Server.  The

  • Touch PDA

    I really wanted to use the Touch as a PDA, so I was disappointed to see that the calender function is read only. A little bit of a crazy question, but does anyone know if the iphone wifi can be used at hotspots like the ipodtouch if I did not get a p