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

Similar Messages

  • [FlexPMD] flexpmd.html report created with zero bytes [Plz help]

    hi folks,
    initially i integrated FlexPMD with Maven.
    when i tried to build it creates the following:
    two folders:
    * CSS --- contains css files
    * Images --- contains image files
    two files:
    flexpmd.html -- created with zero bytes
    pmd.xml -- it lists the violations.
    my pom.xml
    <plugin>
    <groupId>com.adobe.ac</groupId>
    <artifactId>flex-pmd-maven-plugin</artifactId>
    <version>1.0.RC3</version>
    <executions>
        <execution>
        <goals>
            <goal>check</goal>
        </goals>
        </execution>
    </executions>
    <configuration>
        <ruleSet>${basedir}/pmd-ruleset.xml</ruleSet>
        <outputDirectory>${basedir}/target/pmd</outputDirectory>
    </configuration>
    </plugin>
    then i tried to integrate with Hudson, i configured this pmd.xml with hudson, its showing empty graph(see below)
    could you tell me , why this flexpmd.html is generated with zero bytes and why i'm not able to see plotted graph
    i tried the following version 1.0.RC4,1.0.RC5 and 1.1. but these versions also creating empty html report and some versions not running under hudson.
    please provide the correct version and details to solve this issue.
    please help in this issue, no help except this forum... i googled already did nt get any help.
    correct me if i'm wrong.
    thanks in advance.
    Regards,
    Mani

    Hi,
    What do you have in the console log?
    Please, try with 1.1.
    Xavier

  • 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.

  • 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

  • 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. 

  • 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

  • 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

  • Help! Files will send with zero bytes!

    I have been trying to send files (pdf mostly) through a dropbox server. Every time I try to, they send with zero bytes. Why is this? I have no idea on how to fix it!

    Hi,
    What do you have in the console log?
    Please, try with 1.1.
    Xavier

  • 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 .

  • Zip file is created with 0 bytes

    In my below code, I am trying to zip a folder containing files and folders. But the zip file is getting created with 0 bytes.
    Could anyone please tell me what is wrong in my coding.
    private void jButton5ZipActionPerformed(java.awt.event.ActionEvent evt)
         File sgm=new File(jTextField1Text);//jTextField1Text is the filename I am selecting from the jTextField
         File tempXML=new File(sgm.getParent());
         String[] children = tempXML.list();
         for(int i=0;i<children.length;i++)
              File renamingFile=new File(tempXML,children);
              CreateZipFile czf=new CreateZipFile();
              try
                   czf.doCreate(renamingFile);
              catch (FileNotFoundException ex)
                   ex.printStackTrace();
              catch (IOException ex)
                   ex.printStackTrace();
    ==============================
    void doCreate(File dir) throws FileNotFoundException, IOException
         String[] filenames=new String[]{dir.toString()};
         byte[] buf = new byte[1024];
         try
              // Create the ZIP file
              String outFilename = "C:\\outfile.zip";
              ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
              for (int i=0; i<filenames.length; i++)
                   FileInputStream in = new FileInputStream(filenames);
                   // Add ZIP entry to output stream.
                   out.putNextEntry(new ZipEntry(filenames[i]));
                   // Transfer bytes from the file to the ZIP file
                   int len;
                   while ((len = in.read(buf)) > 0)
                        out.write(buf, 0, len);                    
                   // Complete the entry
                   out.closeEntry();
                   in.close();
              // Complete the ZIP file
              out.close();
         catch (IOException e)
    Message was edited by:
    Simmy

    If I give File [] filenames =
    dir.listFiles();an error is thrown for the line
    out.putNextEntry(new
    ZipEntry(filenames)); as
    cannot find symbol
    symbol: constructor ZipEntry(java.io.File)
    location: class java.util.zip.ZipEntry
    There's no constructor that accepts a File as argument. There's only this
    ZipEntry(String name)
              Creates a new zip entry with the specified name.
    ZipEntry(ZipEntry e)
              Creates a new zip entry with fields taken from the specified zip entry.
    Check the API
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/zip/ZipEntry.html
    regards,
    MAnuel Leiria                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deployed EJB.jar has some classes with zero bytes

    Has anyone hit a situation where Windows Jdev 902 puts class files into the ....EJB.jar file with zero bytes? In my case, the eight zero length classes are: seven My...Row.class files and the MyApplicationModule.class file. They all are in the /mypackage/common/ package and are in the ...classes/mypackage/common/ file folder.
    I can use PKZIP to delete the zero length classes and add them back into the .jar and everything works as expected.
    There are no error messages generated during the deployment that creates the .jar file that has the problem.

    This was posted on another thread by jdev team...
    We have been following this issue in support TAR 2274825.996. I sent some technical detail to the support rep on July 10, but it looks like that information never got added to the TAR. Well, FWIW, here it is:
    The user may be running out of open files. The
    stdio library which underlies Win32 programs (like the JVM) has a
    limit on the number of files that can be open concurrently. The
    limit is around 2000-2100 open files (I tested this on NT, 2000, and
    XP), and the limit is on a per-process basis. If the user is running
    into this limit because JDev has too many open files, then the utility
    methods we use to open JAR files or other streams could be receiving
    a java.io.FileNotFoundException exception with the message "Too many
    open files". To verify this: go to the Windows Task Manager, go to
    View | Select Columns... and be sure the "Handle Count" checkbox is
    checked. Does the jdev.exe process have a disproportionately higher
    number of handles than other processes? If the Handle Count is above
    2000 (approx), JDev might be running out of open files. (I say "might" because
    the Handle Count is for many different kinds of Win32 kernel objects,
    not just for file handles.) If the Handle Count is the problem, then
    it would explain the transient, nondeterministic behavior that the
    user is reporting. Because the Handle limit is per-process, it would
    explain why the user is able to use PKZIP or WinZip to repair the JAR
    file. Try closing editors before deploying and see if that helps.
    If the user confirms that the Handle Count is excessive, then we may
    have a Handle leak of some kind in the product that will need to be
    fixed.
    Also try running JDev using "jdev -hotspot" on the command line instead
    of just "jdev" and see if the behavior changes.
    Hope that helps. We are monitoring the TAR, but no one has been able to reproduce the problem you are reporting, even with the files attached to the TAR, and yours is the only report so far that we've received about this specific problem.
    I have added several more entities and views into app module. As I added each one, the list of zero byte jar classes would change, but always about 7-8 bad ones. Now that I am no longer adding new entities/views, the problem has become stable and repeatable. The same classes ALWAYS show up with zero bytes.
    I monitored jdevw.exe while doing the deploy, and the number of handles never went above 675. I ran with jdevw.exe -hotspot and the results were exactly the same.
    thanks,
    Roger

  • 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?

  • 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

  • PDF file created from Oracle Report is created wrongly using dbms_lob

    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

    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

Maybe you are looking for