Converting from Blob to pdf problem

Dear all
I have a small problem i hope someone can help me with. I wrote a code that saves a pdf in a database as blob, but when trying to retrieve this blob back and show it as a pdf i had a problem.
When i tried to show the pdf it appeared as a long stream like the following
%PDF-1.6 %âãÏÓ 27 0 obj <> endobj xref 27 21 0000000016 0000 ...............etc.
so it has the same structure of my original pdf except that it's a long stream in only one line . The original pdf looks like the following
%PDF-1.6
%âãÏÓ
27 0 obj
<</Linearized 1/L 82015/O 38/E 6717/N 1/T 81428/H [ 716 197]>>
endobj
xref
27 21
............etc.
So if anyone can help to change that stream into a pdf again, i will really appreciate it. I attached the 2 files (the stream and the pdf).
Thanks in advance

You should save the PDF data to a file and loading that into your HTML content.
This forum post may help:
http://forums.adobe.com/thread/430491

Similar Messages

  • After 9.3 update getting error printing to Adobe PDF while converting from Powerpoint to PDF

    That happened after upgrading Acrobat Pro 9.1.2 to 9.2->9.3 on Windows XP sp2 platform. Converting from other Microsoft Office 2003 products is totally normal(Excel, Word) Did anyone came accross and know how to fix that?? We have many users with exactly same issue.

    thanks...figured out my problem!
    Date: Wed, 3 Feb 2010 12:24:29 -0700
    From: [email protected]
    To: [email protected]
    Subject: Re: After 9.3 update getting error printing to Adobe PDF while converting from Powerpoint to PDF
    What happens if you try to print to the Adobe PDF printer?
    >

  • Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?

    Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
    Depending on the system version, and Office Word version:
    - a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
    - other kind of links where the text under display is not a URL, never work!
    I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
    I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
    This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • How to use .joboptions file while converting from Word to PDF

    Hi,
    I'm pretty new to Acrobat. I'm using Acrobat XI. I need to convert a word document to a PDF file which conforms to certain requirements described by a given .joboptions file. The .joboptions file can be opened by distiller, but as far as I know distiller is not invovled in the conversion (Word to PDF) process. So how can I make sure the converted PDF file meets the requirement described by the .joboptions file?

    Distiller is used when converting from Word to PDF, if you do it via the Acrobat panel, not the Adobe PDF printer or Word's internal Export to PDF command. If you've loaded your joboptions file in Distiller (via Settings - Add Adobe PDF Settings), then you will see it in the drop-down of Conversion Settings when you click the Preferences button in the Acrobat panel in Word.
    After you've selected your job options profile click the Create PDF button, and the file will be converted using the selected options.

  • Function convertion from blob to clob

    Plesae need help,to make function convert from blob to clob
    i have function but not work when coulmn of blob is vey large
    =========================================================================================
    CREATE OR REPLACE PACKAGE BODY "SHB_PACKAGE"
    AS
    FUNCTION blob2clob (l_blob BLOB)
    RETURN CLOB
    IS
    l_clob CLOB;
    l_src_offset NUMBER;
    l_dest_offset NUMBER;
    l_blob_csid NUMBER := DBMS_LOB.default_csid;
    v_lang_context NUMBER := DBMS_LOB.default_lang_ctx;
    l_warning NUMBER;
    l_amount NUMBER := dbms_lob.lobmaxsize;
    BEGIN
    IF l_blob is null
    THEN
    return null;
    ELSE
    DBMS_LOB.createtemporary (l_clob, TRUE);
    l_src_offset := 1;
    l_dest_offset := 1;
    l_amount := NVL(DBMS_LOB.getlength (l_blob),0);
    DBMS_LOB.converttoclob (l_clob,
    l_blob,
    l_amount,
    l_src_offset,
    l_dest_offset,
    0,
    v_lang_context,
    l_warning
    RETURN l_clob;
    END IF;
    END;
    END SHB_package;

    thanks,function is working fine
    issue duo to i used under informatice and bug in informatica
    Edited by: user8929623 on Jan 17, 2010 1:39 AM

  • How to convert from image based pdf to text based pdf

    I have Adobe 9 Pro. How to convert from image based pdf to text based pdf? For example, if someone emails a scanned pdf to me, how do I convert that document into a text based pdf?

    To perform OCR, open the document and select: Document > OCR Text Recognition > Recognize Text Using OCR
    More information on the various options is in the Acrobat help doc.

  • Converting from publisher to pdf

    When I convert from publisher to pdf my page size changes? Why? And how do I stop this from happening?

    Try in the Acrobat Print menu:
    I'd try choose paper source by PDF Page size
    Note appearance of the Print window will be different on PC although the Controls should roughly be the same.

  • Black Pages - Convert from Word to PDF

    When I convert a Word document to a PDF, the pages on the PDF document are black.  This only happens on select Word document that use a specific cover graphic.  I've sent the same document to a co-worker and they were able to convert the document to PDF with no issues.  I have verified my preferences with my co-worker and these are the same.  I have the latest version of Adobe Reader (10).  I was previously able to convert a Word document with the same graphic to PDF without any issues.  Any ideas on how to fix this?

    Adobe Reader can't convert from Word to PDF.

  • Since 11-4-14 every convert from Word to PDF has failed online or desktop - when will this be sorted

    Since 11-4-14 EVERY convert from Word to PDF either online or desktop has failed, when will this be fixed?

    No replies on here so went online and tried various options including "repair reader installation" plus uninstall and reinstall etc, some posts suggested a repair from the Printers file (Vista) so installed AdobeCreatePDF desktop printer plus Xerox Phaser PS printer as advised. All without any obvious sucess ie still no word docs converted after hours of trying. Then unexpectedly a further test convert attempt succeeded; tested again on desktop plus online and now all works fine as it did before. Who knows why - possibly only Adobe know. Will leave this thread here just in case the fail reappears over next few days!

  • Distorting text/images in converting from pmd to pdf

    My company uses PageMaker 7.0 to create our manuals and brochures and then converts them into pdf's. I've run into this problem before and found that if I didn't properly place or import an image (not copy and paste an image or text) that once converting it into a pdf only a portion of the image would be there or everyother 3rd letter would exist. Thought we had corrected it. The creator of this last document saw everything correctly but when another employee opened the pdf file through the network it was distorted and wrong. I opened the document and "saved as" in my documents and then everything seemed fine from my computer but then the creator opened the file on his computer and it was wrong. The link info on some of the images is wrong even though it was placed properly- the text was entered in Pagemaker but on the pdf is missing letters and causing odd spacing. I'm at a loss now on how to correct this. I hate to upgrade when pagemaker is more than sufficient for the basic manuals we do. I did notice that I was using Reader 9 wheras they still had 8 on their computers- already had them upgrade but didn't think this would be a real issue. Any ideas on the problem or how to correct would be greatly appreciated!!

    Look in the application where the users are generating the PostScript.
    Many of them have an option "print last page first", so this naturally
    produces a backwards PDF.
    Aandi Inston

  • Lines Not Converting From Autocad to Pdf

    I am using Windows 7 Pro, Autocad 2011 (full version), Acroplot Pro 2013 and Adobe Acrobat Pro.
    Using Acroplot Pro, we convert Autocad files to pdf. We are having issues with some lines, or entire sections of a drawing, not converting to pdf file. As if someone erased random lines from the drawing.
    I've walked through this process with Acroplots help line and they say it's not on their end. I know the issues has nothing to do with Autocad because I can re-do this process and the pdf will come out fine the 2nd time. It's rare and random, maybe one file per 100, but causes a problem when you're converting hundreds of files and don't know which one may be wrong.
    Thanks in advance.

    Sorry if I was unclear, we load our cad files into Acroplot which then utilizes Adobe Acrobat Pro claims it's an issue with Acrobat Pro to create the pdf. After walking through the process with Acroplot, they say it's an issue with Acrobat Pro.

  • Why is Adobe changing my fonts when I convert from publisher to pdf?

    I've just started using the pdf conversion plug-in to convert from publisher 2007 to pdf.  The way it was explained to me was that no matter what style of font you use it should be embedded in the file so that when someone opens the file they will read it in exactly the same style as I used to create it.  I am a volunteer for a non-proft org. (my church) and each year we publish a small booklet and sell space to local businesses who contribute to the well-being of my church.  This is the first year I'm using the pdf conversion but when I checked how the ad would look in adobe reader some of the fonts were changed and I can't seem to correct the problem.  It doesn't happen with all the fonts which makes it even stranger.  Anyone got any advice, suggestions, etc.  Thanks.
    Manny

    I'm having the same problem and unfortunately, it doesnt matter which software i'm using... Word,
    Publisher, and even photoshop.  I have Adobe Acrobat Pro and no matter how I try to convert, i'm still getting the same problem.

  • Converting from word to pdf

    When converting from a Word doc to a pdf using joboptions file settings, the layout changes - text is moved up as if the bottom margin is decreased.  This is a problem when the heading on a new page is moved to bottom of the previous page.  Please help - thanks.

    I've noticed the problem in multiple words docs but it doesn't always happen.  I tried again, using print to adobe as I usually do, and noticed that the last line of the first page moved to second page after I converted.  However, this didn't happen when I converted using PDFMaker - thanks!  I will convert using PDFMaker from now on to hopefully avoid the problem. 

  • Hyperlink cross-references not converted from doc to pdf

    Hi,
    We are having some problems converting word documents to pdf. This is a standard part of our day to day work, we convert docs to pdf all the time. We use acrobat 7 professional and Office Professional 2003. The symptom is that hyperlinks are not all being converted in the pdf. The TOC is fine but after that the links do not always work. Right now i have downgraded a workstation back to adobe 6 professional and i'm running a conversion on that of one of our docs that doesn't convert properly. Otherwise i have tried all the settings in the conversion settings window, i have tried saving the doc as an xml first.
    So i have some docs which convert perfectly and some which convert except for dead hyperlinks. I can't see anything wrong with the hyperlinks. I've also tried different workstations, it's always the same result.
    Has anyone else seen anything like this and if so can you suggest any way forward apart from recreating a million hyperlinks in the converted pdfs?
    thanks

    From Word I select 'convert to Adobe PDF' from the Adobe PDF menu.
    We convert word docs to pdf as part of the daily running of the business.
    We always use PDFMaker and not the adobe pdf printer.
    Before now hyperlinks were converting fine.
    I have tried previously to update acrobat, it seems to be stuck on the 7.1.0 update.
    When I search for new updates it just installs the 7.1.0 update again - i have 3 workstations like this.
    They have been like this for a long time, i had in fact stopped attempting to update them - adobe has worked fine up til now and it is in daily use.
    Maybe this is the root of the problem.
    I will try and get one up to date on 7.1.2 and run a conversion and see what happens.

  • Converting from WORD to pdf always fails the first time

    OS is XP. Acrobat Pro 8.1.5. When I first convert from WORD, EXCEL, whatever the program appears to be working but no file is created.  This happens always on the first time I convert to pdf for the day.  Once I do it again, it works and continues to work throughout the day.  I turn off my computer at night and again the next day when I come in it doesn't convert the first time but will work again.  Is there something in Windows or Acrobat that I can fix to get this to work properly?

    If you are using Word 2007 (you don't say) you might try the Microsoft plugin... this is instead of Acrobat
    http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87 041&displaylang=en
    If you are using an earlier version of Word (or Word '07) make sure you have installed all Microsoft Office updates, so you'll know this is not a Microsoft bug

Maybe you are looking for