Output pdf to blob

HI:
I am using Apex 3.2 and pl_fpdf to generate pdf reports. I have the pdfs working very well.
By default, the pdfs are sent to the browser. In most cases this is fine. But, in one specific case I wasnt to generate the pdf and attach it to an email.
I assume that I need to output the pdf to a blob and then attach it to the email?
Does anyone know how I can output the pdf to a blob instead of to the browser?
Thanks.
Bruce

See the FAQ's from PL/PDF's website (http://plpdf.com/#/support/faq) in particular:
What can I do with the generated PDF file?
    PL/PDF returns the PDF file in a BLOB variable. This return value can be used in the following way:
    * Store the BLOB variable containing the PDF file in the database to display later or to archive.
    * Display the PDF file in a browser using a Web Server that has MOD_PLSQL capabilities.
    * Send the PDF file as an e-mail using PL/SQL’s mail extension.
    * Save the PDF file to a computer.Thank you,
Tony Miller
Webster, TX

Similar Messages

  • To store PDF into BLOB and retrieve into OLE/OCX

    We would like to:
    1. Store a PDF file (output of a report saved in file server) into a BLOB
    column.
    2. Retrieve previously stored PDF in the BLOB column and display using either
    OLE automation or ActiveX (OCX) control.
    I read all related documents in metalink that addresses this issue however cant
    get this to work. We have Acrobat Reader 4.0. Here are some issues from the
    tests that I did:
    1. To load the PDF file the program code that uses BFILE and LOADFROMFILE does
    not work since the database is on a remote server and the PDF file is on a
    local file server. The DIRECTORY created on the database is unable to find the
    PDF file.
    2. Though I want the loading of the file to be programmatic, I tried
    right-click on the OLE container and inserted object from file. This loaded the
    file into the container (Icon on the container appeared) however I was not able
    to view the document by double-clicking. An error in Adobe occured: 'There was
    an error opening this document. A file read error occured'. My guess is the
    'Insert Object' did not insert the file properly into the BLOB.
    3. When trying to display the PDF file stored in file server (in case storing
    into BLOB does not work), I used an OCX control, right-clicked and Insert
    Object and select Adobe Control for ActiveX. The problem here is when I run the
    form, the OCX control shows up empty and I have to 'Insert Object' again in
    runtime. Once I manually insert object from runtime the GET_INTERFACE POINTER &
    SET_PROPERTY works fine is displaying the document. Is there any way to
    maintain the control property of the OCX when the form is run?
    4. Are there any workarounds and better solution to store PDFs into BLOBs and
    retrieve and display in OLE/OCX controls? Using temporary file into local drive
    is not an issue.
    5. Would I be able to make use of 'PDF.PdfCtrl.1' OLE class?
    6. Does OLE automation work for Acrobat Reader 4.0.?
    I would appreciate all the help.
    Shyam

    Im facing a similar kind of problem. I want to store and retrieve Office files, PDF and Jpegs into/from the database to view them on web in disconnected mode. Please reply as I cant find any help/documentation regarding saving BLOB data into files. I was able to store file data into BLOB, using DBMS_LOB package.
    Shahzad

  • Outputting pdf to browser from a db

    Hi , I have a web-app that queries a db for a pdf file (Blob) and then outputs the file to the browser. It seems to be downloaded to the browser, but then nothing is displayed. I've used the same code for other apps, which all work fine. I believe it might be server related as it works fine on Tomcat, but not on SunONE. Any ideas? Thanks
                 Blob b = rs.getBlob(1);
                 int len = 0;
                 InputStream is = b.getBinaryStream();
                 long length = b.length();
                 byte[] x = new byte[10240];
                 resp.setHeader("Content-disposition", "filename=temp.pdf");
                 resp.setContentType("application/pdf");
                 resp.setContentLength( (int) length);
                 DataOutputStream o = new DataOutputStream(resp.getOutputStream());
                 while ( (len = is.read(x)) != -1)
                    o.write(x, 0, len);
                 o.flush();
                 o.close();
                 is.close();

    Hi guys,
    In my application I am uploading documents of all type and extensions into the orcale database as BLOB objects. When the user clicks a url to view a document I grab the url and then making use of the document ID requested, I query the database and retrieve the corresponding BLOB object as a byte array and then stream the byte array to display the file/image in the browser.
    (The application is so designed that all the column values of a row are returned as objects, and then I cast the objects based on the need. In my case I get an object corresponding to my document, which I cast it to byte [] and then stream it.)
    I am able to retrieve documents of type MS word and text files. But when I retrieve images I get a blurred/corrupted image. ANd with PDF files I get the following message:
    "There was an error processing a page. Too few Operands." and also "Unknown token '' was found".
    Even when I open excel sheets and powerpoint files I get an error message.
    I am comparing the length of the blob as stored in the db and also length of the blob after retrieving from the db and they are same.
    I am using Internet Explorer 6.0 as my browser, Tomcat 4.1 as my app server and Java 1.4.
    This is my servlet code.
    //retreiving the row from the DB and then casting the Object to byte[]
    byte[] bytes = (byte[])dataSetRow.getObjectValue(7);
    String contentType = dataSetRow.getValue(2);
    response.setContentType(contentType);
    String blobStrLen = dataSetRow.getValue(5);
    int iLen = Integer.parseInt(blobStrLen);
    response.setContentLength(iLen);
    ByteArrayOutputStream output = new ByteArrayOutputStream(iLen);
    output.write(bytes, 0, iLen);
    ServletOutputStream out = response.getOutputStream();
    out.write(output.toByteArray(), 0, output.size());
    out.flush();
    out.close();
    Any help will be greatly appreciated , if you need more details please let me know.
    Thanks,
    anil.

  • How to remove the extra space in the output pdf file?

    Hi All
    In our RTF layout template we have both static content and dynamic content.
    In RTF template we have used many if-else,choose,For each loops.
    On the account of that,In the output pdf file, we are getting lot of empty space in the place of that coding(if-else,choose,For each loops).
    Is there anyway to reduce the space in the output pdf file?
    Please suggest some ideas.
    Thanks in Advance.

    White space is NOT your friend!
    Make sure you don't have any unwanted whitespace between commands and especially tagged on the end of lines. Chain your commands together with no whitespace and let them wrap, do not enter carriage returns.
    Cheers,
    Dave

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • Pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

    pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

    pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

  • How to load externl files (PDF) into BLOB column.  Please help.

    Hi All,
    I've currently been working on loading many external binary files (PDF) into BLOB column. After some digging, I learn that the SQL*LOADER can be used to load data from external files into table. I also got help from another forummate mentioning to use PL/SQL procedure to do so. Since I have not done anything like this before. So, my question is what is the simple approach needed to upload PDF files into a table(there is only one table containing BLOB column in my database). In addition, the LOBs can not be query-able, I wanted to list the contents of the LOBs column to make sure that I did successfully upload data into the database. How can I do that?. I do need your help. Please direct me step by step how to do so. Your help is greatly appreciated.
    Regards,
    Trang

    Hi,
    If the following link helps to you then great.
    http://www.exefind.com/oralobeditor-P25468.html
    Regards,
    Sailaja

  • Placed .png files in look blurry in InDesign CS6 & output PDF

    I'm brand new to InDesign...just learned it yesterday. I'm using CS6. However, I think I'm following best practices as I've watched many instructional videos and have a folder of images I'm using in the document which I place in the document using "File" -> "Place." I've both put them into frames that already exist (and used "Object" -> "Fitting" and often "Fit frame proportionally" but also other commands) as well as without a frame where I drag a window the size I'd like the file to be after I've loaded up my cursor using "File" -> "Place."
    I'm at a loss as my files are 72 DPI and 144 DPI (I'm on a Mac and have checked them out both in Photoshop and using "Tools" -> "Inspector" in Preview) and I have NO idea why they look so terrible in both InDesign and my output pdf! I'm attaching both the files I'm placing and screenshots of what they look like in the output .PDF.
    Thanks SO MUCH for any help anyone can give me--I'm working on an urgent project and must figure this out!

    This info was quite helpful--thanks everyone!
    First of all, I'm not entirely sure I chose the right tool for this job, and advice on this would be welcome. I wanted a document of portfolio pages formatted sort of like a book, so I thought it would be better to use InDesign rather than something like Photoshop or Illustrator (I've learned these tools in the last year but haven't really used them to create documents). My primary goal, however, was to present this information both from my computer and on my website, and a secondary goal was for it to be able to print nicely. So I thought InDesign was the right choice. (I read this article from 2010: Adobe Photoshop vs. Illustrator vs. Indesign | Dream Infinity Studios / Chris Takakura | Art Direction + Design to get some guidance...hopefully most of it is still relevant.) Because of that I wasn't sure whether to use "Intent" -> "Print" or "Intent" -> "Web", so I went with web with a 1024 x 768 page size, hoping that will look OK for desktop (not professional) printing. What do people do when they want something to function in both domains? Not sure if that could have affected anything about the way these images were placed...
    In terms of finding a solution:
    1. I was using High Quality Display--it was more an issue with my output document. (Though strangely sometimes when I toggle between high-quality & typical displays, sometimes things that looked good when I was working on them in high quality, after toggling to typical and back, look horrid.)
    2. It seemed at first that it might be an issue of the way I placed the files, e.g. I was positioning my cursor OUTSIDE any sort of field and dragging a square to the size I wanted my image to be. I'm wondering if it somehow reduced the image size because if I create the square using the "Rectangle Frame Tool" it seemed to work much better. I've also tried just dropping the file without the frame tool and resizing it that way, but my images are actually VERY long & wide, so that's difficult. I was also wondering the "fitting" option I chose may have been affecting the display...I've been trying "Fitting" -> "Fit Content Proportionally" lately.
    3. I created some .pdfs of some of the pings from Omnigraffle, and that seemed to help, but that actually makes them look worse because there are screenshots within the OmniGraffle mock-up files which are washed out and pixelated and the text that was added on top stands out too much (see attached screenshot...the one on top is a PDF and the header and footer looks funny and the bottom is a PNG where at least everything looks consistent).
    So though some files look better now (especially, ironically enough, the 72 DPI screenshot of Use Cases!), I can't figure out what process I should follow to get consistently good results. Because a) the mockup files look good when I first paste them, and b) they are longer and wider than the content area I'm using and I'm shrinking them significantly, I cannot figure out why I can't keep that level of detail after they've been shrunk to fit. I keep wondering if I'm placing image properly, shrinking them properly, or those Fitting settings properly...

  • How to Create a Rich Dynamic Input and Output PDF to insert and get data into, from Database (MSSQL)

    HI ,
    I want to use Adobe LiveCycle Designer and Adobe LiveCycle Workbench features to create a Dynamic PDF form which can allow me to store data into database(MSSQL Server) and Can also provide me the Output PDF form with all the information which has been been filled in by the User in input form. Both Input and Output forms must be Dynamic. I am stuck in this process and Need Experts Advice on the Complete optimal process flow of the Adobe.
    Regards
    Ritesh Grover

    HI
    Go to the lay out of your screen and doublr click on the table control fields, you can get the Properties/Attribute of the screen or table control Fields
    Assing a Group GRP1 for all the fields i n the table control.
    in PBO
    if ok_code = 'INPUT'.
    LOOP AT SCREEN.
    IF screen-grp1 = 'GRP1'.
    screen-input = 1.
    modify screen.
    endif.
    ENDLOOP.
    elseif ok_code = 'OUTPUT'.
    LOOP AT SCREEN.
    if screen-grp1 = 'GRP1'.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    endif.
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Aug 8, 2009 5:27 AM

  • How to get the output .pdf file of a quiz to report to the quiz results analyzer on my internal server (mamp)

    I created a quiz.
    Created an internal server on my compute rising a MAMP.
    When I publish my quiz using the multi-file publishing options...
    I am able to use both the "HTML" and the "swf" output files to complete a quiz and reporting the results to the quiz results analyzer.
    However, I am unable to get the output .pdf field to reporting to the quiz results analyzer.
    Any help? Would this issue have to do with the Acrobat Professional setting? Captivate setting? My internal server setting? or output fuel placement?
    I tired to put the .pdf file in the same MAMP root folder location as my "internalserverreporting.php and internalserverread.php files.
    Thanks for the help.

    Hello Varun,
    You cqan submit the report as a JOB and export the out put to memory, once the job is complete you can read the list to display the output.
    Cheers,
    Mano
    Cut & Paste form SAP help.
    Submit report ....
    EXPORTING LIST TO MEMORY
    Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • SAP Digital signature solution in Invoice output PDF document

    Hi,
    We are trying to POC SAP Digital signature solution for Invoice output pdf document based on the OSS note 700495 implemengtation guide.
    - Defining the log structure and database table.
    - Defining signature single step and authorization group and assignment.
    - Completed the configuration steps including system signature with authorization by SAP user id and password.
    - Release strategy and Archiving NOT implemented for this solution as they are not required as of now.
    Checked the above settings using DSIG_BOOKING_EX sample program and the same executed successfully without any errors and we can see the result 'Signature process was successfully completed by user XXXXXX'. Also we can view the signature log in DSAL Transaction.
    Similar to the sample program code, Implemented the signature call in user exit ZXMCVU05(EXIT_SAPLMCS6_001) for Invoice output digital signature during VF01 create transaction.
    In the process signature call processed successfully but the output PDF document does not have any signature.
    Please let me know why digital signature NOT applied to invoice output pdf file. Is there any other process that need to be done?
    Also if you have implemented any similar solution, please provide me the details on the same.
    Thanks!

    Ritwika,
    Are the User Name and Password correct?  Is the User assigned to the SAP_XMII_User role in Netweaver?  On the iCommand's Security screen, is the SAP_XMII_User assigned as a Reader role?
    Have you checked the Netweaver log?  There may be more detailed information there.
    Kind Regards,
    Diana
    Edited by: Diana Hoppe on Mar 3, 2011 9:50 AM

  • Output PDF on file system? (EBS)

    Hi all,
    When you run a BI Publisher report with a concurrent program, is the output PDF stored somewhere on the file system? (Where..) Thanks in advance!
    Best Regards, Matilda Smeds

    Thanks for the replies! I had found the out-file (xml file) previously. I wasn't aware that there was a separate table for the final outputs, though it is quite essential knowledge. Also, it is good to know the pdf also resides on the file system. Thanks again, to both of you.
    Best Regards, Matilda

  • MG3100 scanner- can I control digital rights on the output pdf to enable comments?

    MG3100 scanner- can I control digital rights on the output pdf to enable comments?
    Solved!
    Go to Solution.

    Hi fassettj,
    Enabling comments on PDFs created with your PIXMA MG3100 is not supported using the software bundled with your printer.  For these features, it is recommended that more full featured PDF creation software is used, such as Adobe Acrobat.  For more information, please use the following link:
    http://www.adobe.com/products/acrobatstandard.html
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to generate a .pdf output for a BLOB column?

    Hi friends,
    (Forms 6i)
    I have a .pdf into a blob column and I want to show that .pdf as my report output...
    Example-> The report only have this query:
    select myblob_ column
    from mytable
    the column in database has the .pdf ... but when I execute the report, it only appears some information when I put the item to show as Text... But obviously it's not the ofriginal pdf...
    If I try to put as OLE2 doesn't appear either anything and if I try to put it as an Image, it appears a message error.
    Any ideas?
    Thanks.
    Jose.

    Hello,
    How has been "uploaded" the PDF file in the BLOB ?
    Regards

Maybe you are looking for