Can we create pdf files from oracle using UTL FILE

i have sample code---
create or replace procedure UTLTEST as
f1 utl_file.file_type;
begin
-- Open a file in write mode
f1 := utl_file.fopen('UTL_FILE_DIR1','NEWFILE.pdf','W');
-- Write a line to a file
utl_file.put_line(f1,'1. This is a test of UTL_FILE packages');
utl_file.put_line(f1,'2. Oracle has added a new procedures in the package');
utl_file.put_line(f1,'3. We will see all the procedure one by one');
-- Close a file
utl_file.fclose(f1);
end;
file is created but when i opened it ,it gives me error that file can not open
is there any way to do it?

Hi!
you can see the following link ---
http://forums.oracle.com/forums/search.jspa?threadID=&q=how+to+create+pdf+from+pl+sql&objID=f75&dateRange=all&userID=&numResults=15 .
And also -- http://www.plpdf.com/ .
Hope this will help u a bit.
Regards.
Satyaki De.

Similar Messages

  • Can not create .PDF directly from file

    I just reinstalled Acrobat 9 (9.5) to a new computer. I cannot create a PDF directly from a Word or OpenOffice document. When I look at the "convert to" or "convert from" tab the file extensions are not listed. I was able to do this before. I tried repair installation with no luck. How do I fix this?

    Does anyone have idea?

  • Creating PDF's from *.doc or *.docx file with fake security issue's ......

    Hi,
    We're trying the new 11 Pro and just patched it to:11.0.09 to try to fix this error below.
    When the user tries to create a PDF from the main menu that now says "Create PDF from File" instead of the old screen that said "Create PDF" ......
    If I start the process with a *.docx file I get the " can't open the file because of rights "  error and it was doing the same thing in the old original installed
    version of 11 and also now this the new one I just updated now to try to fix it. 
    I also deleted the normal.doc templates in both his old MS Word 2003 program and also in the current copy he uses MS Word 2007.
    If I start the 11 Pro and pick the same document as the first one except for the fact that it has been re-saved in a *.doc MS Word 2003 format,
    the whole thing works perfectly.
    Any suggestions?
    Cheers'
    Dave

    Have you tried to open WORD and either print to the Adobe PDF printer or use the Acrobat icon (PDF Maker)? Try both. Do they work or not. PDF Maker has to work for the functionality of the create in Acrobat to work.

  • Flat file to Oracle using --- LKM File to Oracle (SQLLDR)

    Hello All,
    I am planning to replicate simple sqlldr process below in ODI. Two things I cannot do, 1) I cannot modify exisiting tables for creating new sequences 2) We need SEQ column to start with 1 always(tried sequence in odi, didn't work as expected). I am not really good at jython nor java to be able to code "SEQ SEQUENCE (MAX,1) " process in knowledge module(LKM File to Oracle (SQLLDR)) during control file creation. please advice.
    thanks in advance.
    OPTIONS ( SKIP=0)
    LOAD DATA
    INFILE 'e:\Hyperion\DRM\Loadfile\wfc\WFC_1GLO_LE.txt'
    BADFILE 'E:\Hyperion\ODI\Logs\WFC_1GLO_LE.bad'
    DISCARDFILE 'E:\Hyperion\ODI\Logs\WFC_1GLO_LE.dsc'
    TRUNCATE INTO TABLE "MDM_STAGE"."WFC_1GLO_WFLE"
    FIELDS TERMINATED BY X'9'
    TRAILING NULLCOLS
    SEQ SEQUENCE (MAX,1),
    PARENT,
    CHILD,
    CHILD_ALIAS,
    ATTRIBUTE1,
    ATTRIBUTE2,
    ATTRIBUTE3)

    You must modify LKM/IKM to create new sequence for each table. Typically, you should load the file into a C$ table in LKM and then call the sequence to get new key ids in IKM stage. But you can do this in LKMif you know what you are doing.
    Duplicate LKM or IKM (in this case, LKM File to Oracle (SQLLDR)). Add two steps to the LKM before load step. In the first new step, add drop sequence statement like DROP SEQUENCE <%=odiRef.getTable("L", "TARG_NAME", "W")%>SEQ. Mark this step as "Ignore Error" so that load does not fail when sequence would not exist during the first run. In the second new step, create the sequence <%=odiRef.getTable("L", "TARGNAME", "W")%>_SEQ. That way your sequence value will start from 1 always. Be careful during the incremental run though.
    Happy debugging.

  • Can't create PDF from Word file

    I may be missing some functionality or that functionality may not exist.
    I'm running Acrobat Pro 9.2 and MS Word 2004 (11.5) on OSX Leopard 10.5.8. I want to create a PDF from a Word file but NOT using the Print dialog. I want to either create it in Acrobat using File > Create PDF > From File or create it from within Word using the Acrobat menu/toolbar. This is so that it will end up as a tagged PDF.
    However, I don't have an Acrobat menu or toolbar in Word. I thought Acrobat was supposed to have installed these into MS Office when I installed Acrobat. And when within Acrobat if I select File > Create PDF > From File and choose a Word file, I get a message "Acrobat could not open 'filename.doc' because it is either not a supported file type or because the file has been damaged". This happens for all Word files.
    Looking in Acrobat > About Adobe Plug-Ins... under Convert2AdobePDF it says 'Loaded: no'.
    Are these two methods of converting Word files to PDFs something that can only be done in the Windows version of Acrobat? Or is there a plug-in or update I can download to install this missing functionality?
    Thanks for your help,
    Mark

    Keep your Office2004. But Office 2008 does have a way to create PDF's from within  the word and excel Programs.
    It works better than through the AdobePDF Printer, or through the Apple Print menus save as PDF. (Unless you have X.6.x Snow leopard)
    One thing it gets around is a long standing Problem Acrobat has had with word and excel since Word 6.0.1.a/Excel 5.0.1a. Acrobat doesn't know how to interpert Word Page section Breaks. Chopping up a word/excel document in to multiple PDFs that have to be merged back together. MS came up with their own PDF Converter that gets around that problem.

  • Can I create pdf files from Outlook 2003 messages with Acrobat XI Standard?

    Can I create pdf files from Outlook 2003 messages with Acrobat XI Standard?

    Yes, Outlook 2003 is compatible with Acrobat XI Standard and you can create PDFs from emails.
    For reference: http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • Firefox 8... Unable to create PDF files from screen using Adobe Acrobat X...what happened?

    I'm no longer able to use the Adobe feature to create PDF's from the Firefox screen.
    Unable to find any information on correcting this issue.
    I would not have upgraded to Firefox 8 if I knew the loss of the Adobe PDF feature would be effected.
    I reinstalled the standard Adobe Acrobat X with no results...
    What happened?

    Firefox Support - I even create a Firefox account just to agree with [email protected] I appreciate the word "Thank you for being awesome!" when I registered the account and I certainly do hope you all guys being awesome to. Please do something with all this Firefox update - add-on plugin no longer support thingy. Firefox still awesome, it's just that I can't do much wit it anymore like I used to do. Ohh yayy theres Safari..

  • Can't create PDF from most MS Office files, or combine

    After behaving nicely for months, Acrobat suddenly won't create PDFs, either from the Acrobat menu or (for most) from right-clicking in Explorer. If I try File> Create PDF> From File, the dialog says it's looking for 'all supported formats' but doesn't show any of the files in the folder (not even .TXTs). It'll create a PDF from the right-click menu in Explorer, for only a very a few file types (for example, .docx but not .doc), and it won't do a Combine Files, either from Explorer or from the program, for any filetypes (says 'cannot convert file' on all filetypes).
    This worked fine up til today and I have the same setup at work (AA 9 Pro and Office 2010) where it works fine. Tried doing a 'Repair' but no change. Starting to panic here. What went south? Thanks for any clues!

    I said to print as a check, not to forget PDF Maker. The print is a temporary work around while you resolve the issue, partiuclarly if you are under time pressure. With versions before AA9, PDF Maker was simply a front end for the printer and when the printer was checked things might fail. So you get some trouble shooting of where the problem is. If you do not want to troubleshoot to see if everything is broken, that is fine.
    The updates and repairs are other steps to take. A reinstall is typically a last resort and should include deletion of the Acrobat folder and running a cleaner on the registry after the uninstall.
    Generally, if the PDF Maker in WORD does not work, then none of the other options to right click and create a PDF or creating a PDF directly in WORD will not work either. The whole point is to trace down to what is the major problem. Often folks have problems because the PDF Maker is not being recognized in WORD and has to be activated, but you have the icon and that suggests things should work.
    Your next step is to check the job settings file. Be sure you have access to the job settings file. You will usually get an error message if this access is denied for some reason and posting the error is helpful.

  • How to download a file from Oracle UCM using OSB

    Hi,
    How can I download a file from Oracle UCM and save it on a filesystem using OSB 11.1.1.5.
    Thanks

    UCM supplies webservice interfaces which let you retrieve the filecontent by soap calls from UCM (http://ucmhost/_dav/cs/idcplg for example). (maybe you should enable some settings on ucm to have this webservice interface getting published).
    This services for example has 2 operations getFileByID and getFileByName.
    So you can just call these services from within OSB.
    After that you need to do some tests if you eitherway need to create a file-transport business-service and call this one from your proxy service or create a messageType proxyservice (binary)  which calls this file-transport business service to be able to write fo filesystem.
    I think for the OSB book i used a jca file adapter generated in Jdeveloper and used that one to write to filesystem.

  • Create XML file from Oracle DB

    Hi,
    I'm working in a task to create electronic billing for Mexico Rules, to do this; I need to create a XML source that will contain all the information requested from Oracle DB.
    For this reason, I'm looking how to create this XML file from Oracle DB.
    All this is for the new legislations rules in Mexico to use electronic billing.
    Please, if you have any reference about this, let me know.
    Thanks and regards.

    you may want to check out commands like xmlforest and xmlelement
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions221.htm
    copied from documentation
    Purpose
    XMLForest converts each of its argument parameters to XML, and then returns an XML fragment that is the concatenation of these converted arguments.
    •If value_expr is a scalar expression, then you can omit the AS clause, and Oracle Database uses the column name as the element name.
    •If value_expr is an object type or collection, then the AS clause is mandatory, and Oracle uses the specified c_alias as the enclosing tag. The c_alias can be up to 4000 characters.
    •If value_expr is null, then no element is created for that value_expr.
    Examples
    The following example creates an Emp element for a subset of employees, with nested employee_id, last_name, and salary elements as the contents of Emp:
    SELECT XMLELEMENT("Emp",
    XMLFOREST(e.employee_id, e.last_name, e.salary))
    "Emp Element"
    FROM employees e WHERE employee_id = 204;
    Emp Element
    <Emp>
    <EMPLOYEE_ID>204</EMPLOYEE_ID>
    <LAST_NAME>Baer</LAST_NAME>
    <SALARY>10000</SALARY>
    </Emp>

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • I can't create PDFs from CS3 programs in Acrobat Pro XI. Compatibility issue or just Acrobat?

    I was just upgraded to Acrobat Pro XI this morning. InDesign, Photoshop, and Illustrator don't seem to be supported file types for creating a PDF from Acrobat.  While I usually create my PDFs from the authoring program, I occasionally need to make a lot of PDFs of different files at once, and making them from Acrobat makes sense instead of opening each individual file.
    Is this just a compatibility issue? We have requested upgrades to CS6, but it will be a while before it gets approved (if it gets approved).  Did someone think it was a brilliant idea not to allow PDFs from the CS products to be created from Acrobat instead of the authoring program?

    Can you describe your workflow a little more? Are you saying that you created PDFs of InDesign documents using Acrobat directly -- not using InDesign?
    If that was possible in CS3, I must have missed it.
    FWIW, I can't select CS6 InDesign, Illustrator or Photoshop documents in Acrobat X. You can only select a handful of image formats, HTML or PostScript/EPS.

  • Can not create PDF files 8

    Removed PhotoShop 5 and a few other programs the other day to create more room. Now I can't create PDF files anymore in Excel and AutoCad. When I try, it outputs to my note pad with the following:
    %%[ Error: undefined; OffendingCommand: setdistillerparams; ErrorInfo: CalCMYKProfile U.S. Web Coated (SWOP) v2 ]%%
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    Error accessing color profile: U.S. Web Coated (SWOP) v2
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    Any sugestions.
    I'm useing Acrobat 8 Standard with Windows XP
    Thanks
    Steve

    If the repair does not do the job, then try a different job settings in the printing process. The error you are getting comes from the Distiller step of the PDF creation. You can go in steps if you wish by trying to print to file. Then opening that file in Distiller to see that happens.

  • Generated pdf file from oracle reports show bad characters

    Hello all,
    Iam fighting with a problem with generated pdf file from oracle reports which show some bad characters. I was searching for some information but it didnt help...
    I have Oracle Database 11g R2 (or 10g R2) on Oracle Linux or Windows, Oracle forms and reports 6i (i know that is very old and not supported with 11gr2 but we are in this scenario).
    NLS parameters are set like this
    server:
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_TERRITORY AMERICA
    NLS_LANGUAGE AMERICAN
    client:
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_TERRITORY SLOVAK
    NLS_LANGUAGE SLOVAKIA
    When I run Oracle Reports it show perfect in display and when I try to print them, they are all good with good characters, but when I try to generate pdf file, some characters like č,š,ľ are not displaying corectly... This happen only when try to generate to pdf...
    I try to work with uifont.ali on client side but without any result. Fonts for reports were installed on client and server side... Can someone help me with this problem? Thank you very much for every advice.
    Martin

    Hi Sergiusz,
    Thank you for your reply. I look at what you wrote and try to make some test...
    1) For first I download FontForge, which can generate type1 font from true type. So I open FontForge and open my Arial.ttf font and use "Generate Fonts" to save my Arial.ttf font to pfb and pfm (whoch are need to set in uifont.ali). I have to change encoding, because my font has 2byte encoding so I reecondode the font from ISO10646-1 to ISO8859-2 and generate to pfb.
    2) Then I navigate REPORTS_PATH from regedit to my *.pfm and *.pfb files.
    3) I add these lines to end of my uifont.ali
    [ PDF:Embed ]
    Arial = "Arial.pfm Arial.pfb"
    ArialNarrow = "ArialNarrow.pfm ArialNarrow.pfb"
    4) Then I generate my report but nothing change... I check "Font used" in my pdf file, but there were not my fonts embedded I guess..
    I also try PDF:Subset, but it doesnt change anything... I try PDF aliasing to see if my uifont is working - this work very well, but I dont need to change font...
    Any other advice? Thank you so much to everyone!
    Martin

  • Generate .dbf file from oracle database using JDBC

    Dear all,
    I need to generate a .dbf file from oracle table. Anyone know how to do this using Java Programming or JDBC? please help!
    thank you

    Hi,
    I assume you already have a JDBC driver for either FoxPro or DBase. If not, use the JDBC-ODBC bridge and the ODBC driver that comes with Window$.
    When you issue a "Create TABLE" command the driver will automatically create a .dbf file and then you can export data to it.
    Imran

Maybe you are looking for

  • Windows 8 on macbook air

    Anybody aware of any challenges installing Windows 8 on Macbook Air? Just want to ensure that all audio, video and all ports continue to work when installing Windows 8. Don't want to take the plunge without getting some advice, since the system requi

  • Wireless Keyboard pairing Unsuccessful

    Hello: I just bought a new wireless keyboard and mouse for my Macbook Pro (new this year). The Mouse paired no problem but unfortunately pairing the keyboard has become rocket science. Before posting I Searched this forum and found most had a very sp

  • Portugal VAT Declaration

    Hello Gurus, I have customized in transaction OBCH the tax code with the correct group number for tax amounts. For example, i have one tax code with the group 24, for one tax grouping version ( M002). When I go to execute the report S_AL0_96000738 -

  • In script model, why may the text object's parent  be character?

    why? its parent also can be a XmlStroy, TextPath, Text, Character,world,line and so on? why?

  • How to change a account assignment in and cost distrubution on cost center

    Hi Expert Can any one let me know how to change the account assignment and cost distribution on the cost center. When I am going to change it I could see it is grayed out . Why it is so .Is there any configuration for this in view that no body can ch