PDF file creation using backend package

How to create a PDF file using Oracle 10G Backend Package?

Write something like this to a file and you have your PDF created from the database:
%PDF-1.3
1 0 obj
<</CreationDate (D:20101018093136)/Creator (AS-PDF 0.2.0 by Anton Scheffer)/Producer (running on Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product)>>
endobj
2 0 obj
<</Type/Font/Subtype/Type1/BaseFont/Helvetica/Encoding/WinAnsiEncoding>>
endobj
3 0 obj
<</ProcSet [/PDF /Text]
/Font
  <<
    /F1 2 0 R
  >>
>>
endobj
4 0 obj
<</Type/Pages/Kids [
6 0 R
/Count 1
/MediaBox [0 0 595 842]
>>
endobj
5 0 obj
<<
/Length 86 >>
stream
BT /F1 12 Tf ET
BT 28.35 744.85 Td (Some text written from database backend.) Tj ET
endstream
endobj
6 0 obj
<< /Type /Page
/Parent 4 0 R
/Contents 5 0 R
/Resources 3 0 R
>>
endobj
7 0 obj
<</Type/Catalog/Pages 4 0 R/OpenAction [0 /XYZ null null 1]>>
endobj
xref
0 8
0000000000 65535 f
0000000010 00000 n
0000000193 00000 n
0000000284 00000 n
0000000364 00000 n
0000000452 00000 n
0000000593 00000 n
0000000680 00000 n
trailer
<< /Root 7 0 R
/Size 8
>>
startxref
760
%%EOFAnton
P.S. div class="jive-quote" div class="jive-quote" /div /div should be read as >> The forum software messes things up
And no, I don't write this PDF-stuff with a text editor, I have written a small package (less than 1000 lines) which does that for me.
Something like PL_FPDP, http://www.erasme.org/PL-FPDF,1337
Edited by: ascheffer on Oct 18, 2010 11:41 AM

Similar Messages

  • I use iMac desktop. I can't save web pages as PDF file by using Firefox, but by Safari is fine.

    I'm using Mac OS X 10.6.4. Today, I tried to save my email content as a PDF file. However, I only got a PDF file that have partial content of email. Then I adjust the printer setting and did it again, then I only got a blank PDF file. There was nothing inside. Then I tried to save email as a PDF file by using Safari browser. And I got a complete and sucessful PDF file. I usually save web pages or web mail, online receipt as PDF file by use Firefox. But since I have updated to the new version, there were many problems with my Firefox. I tried to restore all my application and made Firefox in the old 3.6.3 version which I used to have no problem. But now still not working.

    I solved it for myself: it was my HP smart-web printer crap that was a plug in and add on for firefox that somehow automatically got installed when I upgraded to 5. I disabled both in the add-ons manager, and voila, printing is working.
    It seems there are many things, like this and the Google toolbar, that were screwed by the oddly fast update to 5. Looks like Mozilla didn't give anybody any notice! Must've been some really bad security hole.

  • I use iMac desktop. I can't save web pages to PDF file by using Firefox, but by Safari is fine.

    I'm using Mac OS X 10.6.4. Today, I tried to save my email content as a PDF file. However, I only got a PDF file that have partial content of email. Then I adjust the printer setting and did it again, then I only got a blank PDF file. There was nothing inside. Then I tried to save email as a PDF file by using Safari browser. And I got a complete and sucessful PDF file. I usually save web pages or web mail, online receipt as PDF file by use Firefox. But since I have updated to the new version, there were many problems with my Firefox. I tried to restore all my application and made Firefox in the old 3.6.3 version which I used to have no problem. But now still not working.
    ''Duplicate post, continue [https://support.mozilla.com/en-US/questions/746583 here]''

    hello jlzibell, please go through the troubleshooting steps described at [[Websites say cookies are blocked - Unblock them]].

  • Recently my adobe is taking much longer to load PDF files that used to open immediately

    recently my adobe is taking much longer to load PDF files that used to load almost instantly

    Look at this comprehensive trouble shooting document;
    https://discussions.apple.com/docs/DOC-3353
    I suggest that you start with SMC and PRAM resets.
    Then  a Safe Boot.
    Ciao.

  • Saving a Text data to a PDF file without using print option

    Hi,
    I want to save a Text to a PDF file. I want to assign the path of the PDF file as a default one.
    If I use Print options, then it ask for the file path at the run time.
    Is there any method to save to a PDF file without using print option in Labview 8.2.
    Regards,
    Raja

    This question comes up a lot. Did you try searching? It depends on the PDF printer driver that you're using. See here, here, here, ...

  • Firefox 33 doesn't display a pdf file when using the response object

    Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Response.Clear()
    Response.ClearHeaders()
    Response.Buffer = True
    Response.ContentType = "application/pdf"
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
    Response.WriteFile(strPDF)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    Session("filname") = ""

    Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
    Dim strPDF As String
    strPDF = Session("filname") 'pdf filename
    Dim User As New WebClient()
    Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
    If Not (FileBuffer Is Nothing) Then
    Response.Clear()
    Response.ClearHeaders()
    Response.CacheControl = "Private"
    Response.AddHeader("Pragma", "no-cache")
    Response.AddHeader("Expires", "0")
    Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-length", FileBuffer.Length.ToString())
    Response.BinaryWrite(FileBuffer)
    Response.Flush()
    Response.Close()
    Response.Clear()
    Response.End()
    End If
    Session("filname") = ""

  • Can't open pdf. files something about patch package

    Can't open PDF files something about patch package verification.error.

    I am having the same issue.  Unable to open ANYTHING related to adobe (PDF, downloads), as well as unable to delete and reinstall or even change or correct. 

  • How to insert my signature in pdf file by using adobe?

    how to insert my digital signature in pdf file by using adobe

    Hi vani.boddu,
    If you're using Adobe Acrobat then refer the below links:
    Video : http://tv.adobe.com/watch/i-didnt-know-acrobat-xi-could-do-that-tutori als/sign-pdf-files-electronically/
    Document : http://help.adobe.com/en_US/acrobat/X/standard/using/WSAC8084C2-14F7-4 841-9EF8-92106D22C3DB.w.html
    If You're Using Adobe Reader
    Please refer : http://helpx.adobe.com/reader/using/sign-pdfs.html

  • PDF file creation from spool

    Hi
    I amtrying to create  a spool request for the PDF file.
    Ihave Xstring type data in my program, which is input for PDF file.
    by using  RSPO_OPEN, RSPO_WRITE,RSPO_CLOSE function modules.. it is creating  a spool  with RAW data type.
    but I have to create SPOOL with PDF format.
    Can soemone help to generate PDF file from XML or RAW data format to PDF?

    I have a requirement to create a PDF file from the attachments on any business object (such as PO, Sales Order etc). In short, I need to create a PDF file out of fnd_lobs.file_data
    Any roadmap with example ?? Anybody ??Please see these docs.
    How to Load Attachments Via API into Service Requests? [ID 394811.1]
    Attaching A File To An Object via A Public API [ID 281130.1]
    Upload Image over 32k into PER_IMAGES from FND_LOBS as Blobs. [ID 462967.1]
    Thanks,
    Hussein

  • How can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    how can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    let's say a registration form, there is only 1 full address provided in my registration pdf, but applicant could have more than 1 address, so i have to make it more flexible to extend the address page no matter how many addresses that applicant provided, i have use adobe acrobat pro to edit the form properties. but dont know how to extend/duplicate a page in felxible times.
    Please advise~ tks so much!!! George

  • Open *.PDF file by using ABAP program

    Hi,
    Can anyone please tell me about  " how to  open a PDF file by using an ABAP program".
    Regards,
    Prasanth

    Welcome to SDN.
    Refer this class - CL_GUI_PDF_VIEWER
    You may refer this thread also -
    Re: Open Jpg, Excel, word, pdf files from SAP screen.
    Regards,
    Amit

  • Creating an Adobe .pdf file without using the Adobe printer

    Is it possible to create a .pdf file by using Acrobat or Microsoft Word or any other program without using a printer driver? So far, when I remove the Adobe printer, I cannot create a .pdf file, as it is looking for the printer and printer driver. Is it even possible to create a .pdf without using, or having, a PDF printer of any sort? Any help on this issue would be most helpful. Thanks.

    I was trying to find a way to create PDFs without using the Adobe printer, or any PDF printer. I posed this question to see if there was a way to create a PDF without the aid of a printer or not. I mean, I know how to reinstall the Adobe printer, since I had to to see if there was another way to go about creating without using the printer. I am just curious if there is a way to create a PDF file without the aid of the Adobe printer or other PDF printers.

  • A simple and free way of reducing PDF file size using Preview

    Note: this is a copy and update of a 5 year old discussion in the Mac OS X 10.5 Leopard discussions which you can find here: https://discussions.apple.com/message/6109398#6109398
    This is a simple and free solution I found to reduce the file size of PDFs in OS X, without the high cost and awful UI of Acrobat Pro, and with acceptable quality. I still use it every day, although I have Acrobat Pro as part of Adove Creative Cloud subscription.
    Since quite a few people have found it useful and keep asking questions about the download location and destination of the filters, which have changed since 2007, I decided to write this update, and put it in this more current forum.
    Here is how to install it:
    Download the filters here: https://dl.dropboxusercontent.com/u/41548940/PDF%20compression%20filters%20%28Un zip%20and%20put%20in%20your%20Library%20folder%29.zip
    Unzip the downloaded file and copy the filters in the appropriate location (see below).
    Here is the appropriate location for the filters:
    This assumes that your startup disk's name is "Macintosh HD". If it is different, just replace "Macintosh HD" with the name of your startup disk.
    If you are running Lion or Mountain Lion (OS X 10.7.x or 10.8.x) then you should put the downloaded filters in "Macintosh HD/Library/PDF Services". This folder should already exist and contain files. Once you put the downloaded filters there, you should have for example one file with the following path:
    "Macintosh HD/Library/PDF Services/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    If you are running an earlier vesion of OS X (10.6.x or earlier), then you should put the downloaded filters in "Macintosh HD/Library/Filters" and you should have for example one file with the following path:
    "Macintosh HD/Library/Filters/Reduce to 150 dpi average quality - STANDARD COMPRESSION.qfilter"
    Here is how to use it:
    Open a PDF file using Apple's Preview app,
    Choose Export (or Save As if you have on older version of Mac OS X) in the File menu,
    Choose PDF as a format
    In the "Quartz Filter" drop-down menu, choose a filter "Reduce to xxx dpi yyy quality"; "Reduce to 150 dpi average quality - STANDARD COMPRESSION" is a good trade-off between quality and file size
    Here is how it works:
    These are Quartz filters made with Apple Colorsinc Utility.
    They do two things:
    downsample images contained in a PDF to a target density such as 150 dpi,
    enable JPEG compression for those images with a low or medium setting.
    Which files does it work with?
    It works with most PDF files. However:
    It will generally work very well on unoptimized files such as scans made with the OS X scanning utility or PDFs produced via OS X printing dialog.
    It will not further compress well-optimized (comrpessed) files and might create bigger files than the originals,
    For some files it will create larger files than the originals. This can happen in particular when a PDF file contains other optomizations than image compression. There also seems to be a bug (reported to Apple) where in certain circumstances images in the target PDF are not JPEG compressed.
    What to do if it does not work for a file (target PDF is too big or even larger than the original PDF)?
    First,a good news: since you used a Save As or Export command, the original PDF is untouched.
    You can try another filter for a smaller size at the expense of quality.
    The year being 2013, it is now quite easy to send large files through the internet using Dropbox, yousendit.com, wetransfer.com etc. and you can use these services to send your original PDF file.
    There are other ways of reducing the size of a PDF file, such as apps in the Mac App store, or online services such as the free and simple http://smallpdf.com
    What else?
    Feel free to use/distribute/package in any way you like.

    Thanks ioscar.
    The original link should be back online soon.
    I believe this is a Dropbox error about the traffic generated by my Dropbox shared links.
    I use Dropbox mainly for my business and I am pretty upset by this situation.
    Since the filters themsemves are about 5KB, I doubt they are the cause for this Dropbox misbehavior!
    Anyway, I submitted a support ticket to Dropbox, and hope everything will be back to normal very soon.
    In the meantime, if you get the same error as ioscar when trying to download them, you can use the link in the blog posting he mentions.
    This is out of topic, but for those interested, here is my understanding of what happened with Dropbox.
    I did a few tests yesterday with large (up to 4GB) files and Dropbox shared links, trying to find the best way to send a 3 hour recording from French TV - French version of The Voice- to a friend's 5 year old son currently on vacation in Florida, and without access to French live or catch up TV services. One nice thing I found is that you can directly send the Dropbox download URL (the one from the Download button on the shared link page) to an AppleTV using AirFlick and it works well even for files with a large bitrate (except of course for the Dropbox maximum bandwidth per day limit!). Sadly, my Dropbox shared links were disabled before I could send anything to my friend.
    I may have used  a significant amount of bandwidth but nowhere near the 200GB/day limit of my Dropbox Pro account.
    I see 2 possible reasons to Dropbox freaking out:
    - My Dropbox Pro account is wronngly identified as a free account by Dropbox. Free Dropbox accounts have a 20GB/day limit, and it is possible that I reached this limit with my testing, I have a fast 200Mb/s internet access.
    - Or Dropbox miscalculates used bandwidth, counting the total size of the file for every download begun, and I started a lot of downloads, and skipped to the end of the video a lot of times on my Apple TV.

  • Attaching a pdf file in the backend

    Hi All,
    I have the following requirement.
    I have a certain Backend table and I am using a FM to send all the data from it to the middleware and then to the client.
    Now I need to pass a pdf (or an image) file from the backend to the client.
    Like one can add a file in some field of the table and when the client syncs, the file should go to the client.
    Any Ideas how should I go about it?
    Any suggesstions will be helpful.
    Thanks a lot...
    Ankur

    Hi,
    well, if you have a method in the backend, you have two possible options:
    No. 1 is to use the GENERIC sync, call this method and deliver the string itself.
    The second one is the one I described above as well: Take the binary string, split it into pieces and store these pieces as items in a SyncBO. On the client, take these chunks, put them together to one bit and save it.
    The only hint I can give you to see how this works is to check the MAM Signature capturing solution - this doies the same on the other way - take an image on the client, split it into chunks and send it to the backend.
    Perhaps a little more in detail: There is no field in a syncBO that is able to take an object that is longer 255 characters. The longest thing we have to store values is the STRING method. And this is able to store about 255 chars.
    So do the following: create a SyncBO. In the top structure zou store name, date, assigned user,.... all data you like to specify this Object. Then the BO has an item 010. This item has two fields: INDEX and ITEM. You have the PDF. Lets say as raw string you have a string of 290 chars. So you create a first instance of item 010, INDEX is 0, and the first 250Chars you store in ITEM. Then you create a new instance of 010, INDEX is 1 and the ITEM contains the last 40 chars. On the client, you just take the two items, put them into the right oder and then save the string with its 290chars to the HDD.
    Just another thing to clarify: in the moment you have a file, you can read it and store it in a simple STRING. If you then take this string and save it again with its filename, then the informaiton is still complete. There is no special conversion necessary in 99.9% of the cases.
    I hope this helps you to get the thing done. If not, please specify exactly where I have lost you, I try to explain that point then more in detail.
    Regards,
    Oliver
    p.s.: Just to make it more simple: Long Text in MAM is handeled exactly the same way. They split the text into chunks of 132chars and store it in MAM010Item090
    Edited by: Oliver Kaluscha on Jan 7, 2008 10:14 AM

  • Tamper proof or noneditable PDF file creation from smartforms.

    Experts,
    We have requirement to create PDF file from smartforms that should be tamper proof.
    As we know there any many PDF to word convertors tools are in market.
    So PDF file should not be copied and not converted in word (should be tamper proof and non-editable).
    So do we have solution with in SAP only to achieve above requirement ?
    Please take your time answering, I'm not the kind of person that demands an answer really quickly, because that would be a bit rude.
    Message was edited by: Matthew Billingham - "hurry up" text replaced.

    Dear Jelena,
    True PDF is non-editable, but we can copy PDF content or even we can use tool to convert into word/docx format. for basically we are using information.
    Orignal source will never change.
    Let me explain you example.
    Let say i have converted invoice (smartform) into PDF and send to X person.
    Now X person can convert PDF into word format.
    X person did some changes in word and converted back to PDF (miss use of orignal data/PDF file).
    So requirement is that X person should not copy PDF content (Ctrl + C) and X person should be restrcited from converting to word.
    Acrobat/Adobe has this feature but this is external (need to use some third pary tool)
    Can this requirement accomplished within SAP only or include some Adobe package (class & method in SAP ).

Maybe you are looking for

  • Transport user specific layout of standard report from developer server to

    Hi , I am using user specific layout of standard report in my customizing report for retrieving data from standard report. i want to transport this user specific layout of standard report from developer server (say client 400 ) to production server (

  • My airport does not start when pligged in

    My aipport does not start when plugged in.  The light does not come on at all.  If there some kind of a reset switch?

  • EntrySet has private access in java.util.Hashtable

    Hi friends, While i try to retrieve the data from the hashtable through a JSP page, i'm getting the error saying "E:\Tomcat 5.0\work\Catalina\localhost\dd\org\apache\jsp\disp_jsp.java:55: entrySet has private access in java.util.Hashtable Iterator i

  • Are their any advantages of selecting Postscript over PCL?

    I would be interested in any views on the selection of SAP Device types, specifically for HP laser printers.  Traditionally I have always used the device specific PCL device types readily available but it appears that more and more printer vendors no

  • EO or EOIO

    Hi gurus, I have to set up an IDoc to File scenarios for daily master data distribution. I wonder what QoS is better to use and why, since a lot of other messages (EO) are going through xi all the time. Janos