Conversion of various file formats to PDF

I need to convert files of different file formats like .doc, .pst, .xlx, .txt, gif, jpegs etc. to PDF.
There are open source JAVA API available to do this eg. iText, and Faceless API. But they do not convert the file more accurately. How is it possible to do this using Java? Is there any other API available to do the same? How is it possible through Adobe Distiller APIs ?
Some solution which I have found are converting those files first to PostScript and then using PDFWriter converting it to PDF. How good it is?? Can anybody give some idea on it??
Any Suggestion / solutions will be welcome.
rgds
Shailender Rawat

Hi ,
I am trying to Print RTF to PDF file and maybe there is a way by first converting RTF to PS and then printing PS using acrobat distiller ... but how do I specify the destination for the PDF file .
I am trying to set the destination by this code -
PrintRequestAttributeSet aset =
               new HashPrintRequestAttributeSet();
                    aset.add(new Copies(1));
          try{
               aset.add(new Destination(new URI("file:///foo/bar")));
          } catch (java.net.URISyntaxException uri) {
               System.out.println( " URI exception "+ uri ) ;
Is this how output is sent to PDF file ???
Flavor is - DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
/* locate a print service that can handle it */
          PrintService[] pservices =
               //PrintServiceLookup.lookupPrintServices(flavor, aset);
                    PrintServiceLookup.lookupPrintServices(flavor, aset);
          System.out.println( "what is the service found " +pservices.length );
and I get the printer - Acrobat distiller and I print using this code -
if (pservices.length > 0) {
               System.out.println("selected printer " + pservices[0].getName());
               /* create a print job for the chosen service */
               System.out.println(" services found ");
               DocPrintJob pj = pservices[0].createPrintJob();
               try {
                    * Create a Doc object to hold the print data.
                    * Since the data is postscript located in a disk file,
                    * an input stream needs to be obtained
                    * BasicDoc is a useful implementation that will if requested
                    * close the stream when printing is completed.
                    System.out.println(" file found") ;
                    FileInputStream fis = new FileInputStream("NavneetTest.ps");
                    System.out.println(" Trying to print doc ") ;
                    Doc doc = new SimpleDoc(fis, flavor, null);
                    /* print the doc as specified */
                    pj.print(doc, aset);
               } catch (IOException ie) {
                    System.err.println( " Exception is " + ie);
               } catch (Exception e) {
                    System.err.println(" Exception is " + e);
and I get error in a windows dialog described below -
error writing to C:\WINNT\Profiles\All Users\Desktop\*.pdf for Document My Document :-The filename, directory, or volume label syntax is incorrect ..
Do u wish to retry or cancel the job?
Retry/Cancel
.. don't know how to set the uri value in the destination object to point to local hard disk folder if that is the way to print PDF . Can you please share the solution u have found ? I am really stuck !!!
Regards,
Navneet

Similar Messages

  • Conversion of various files formats to 3gp

    Hi,
    I am working on acode whic has a requirement to convert files from various formats (mov,mp4,avi,rm,flv) to 3gp and wma, wav, ra to mp3.
    1)Will JMF support all these conversion basically want to know about the 3gp support by the JMF framework.
    2)The code is supposed to be on the server side.Which would be a better in performance 1)insatlling native convertors like FFMPEG and calling command line calls from Java cod or 2)Using JMF
    Thank in Advance
    Regards,
    Vineeth

    See this link:
    http://www.jsresources.org/examples/audio_conversion.html

  • Highlight File Format and PDF Documents with Chinese and English characters

    I'm a developer working on an application that makes use of the Highlight File Format / external highlight server capabilities of Adobe Reader.
    The highlighting worked correctly until we started to introduce pdf documents that were scanned to recognize Chinese in addition to English.
    The xml file seems to have the correct values in it. For example, if the 10 characters to highlight are at position 41 on the first page. The "xml" file has the <loc pg=0 pos=41 len=10>.
    If the document is scanned for English only, it works fine. That is, the highlight starts at character 41. If the same document is scanned for Chinese and English, the highlight starts at character 22.
    Has anyone had a similar experience? Do you know a solution?

    Hi,
    I don't know about BIP and the specifics of your context, but here are some general answers for the XLIFF format:
    <?xml version = '1.0' encoding = 'utf-8'?>
    Can we change encoding to 'ISO-8859-1' as soon as we convert the file format ?If you also save the file to ISO-8859-1 as well yes. But you can do this only for languages supported by Latin-1. It makes sense to keep the files in UTF-8.
    A-2) he section <header><skl><internal-file> contains a huge string
    which seeem to be binary ... What is this ? can we delete it ?That's likely to be the skeleton file. The data used to rebuild the original format after translation.
    Most likely it should stay there.
    A-3) Can we have one XLF file with muliple <file> sections (one per language to translate to ) ?
    This can be very useful for us to manage one only translation file per report template.Yes but no: yves you can have several <file> elements in an XLIFF document, but no: they must be for the same language pair. XLIFF is designed to work with bi-lingual files, not multi-lingual files.
    A-4) the most important section for translation is included in the <trans-unit> tag .
    Each one has a distinct id like ""49e41f8f" ... Can we replace this by a more meaningfull value ?Those id attributes are used by the filter to merge back the data after translation. You should preserve them.
    A-5) the language format is like "en-US" (language code + territory code).
    Is it case sensitive ? No it is not case-sensitive (en-us == en-US). The values of xml:lang are not case sensitive (unlike other XML attribute values).
    en-US is just the recommended notation.
    The XLIFF specification are here:
    http://docs.oasis-open.org/xliff/xliff-core/xliff-core.html
    Hope this helps,
    -ys

  • Which 3D file formats does PDF support?

    Which 3D file formats can I insert (import) into a PDF?

    Universal 3D (.u3d) and Product Representation Compact (.prc)

  • Convert/join multiple file formats (doc, pdf, text) into 1 single PDF/A using web services

    We would like to purchase LiveCycle for the PDF Generator feature, but we want to know if it will meet our technical requirements.
    We would like to convert a PDF, an HTML, a DOCX, and some custom text into 1 single PDF/A. Basically: joining 3 different files types and some text into 1 very long PDF/A file. Can we do this type of join?
    Also, we would like to install LiveCycle on a central server and then call a web service or use an API where we can input the 3 different files and the text and as output we would get 1 PDF/A back. Obviously there might be intermediary steps, but in essence we need to be able to do this conversion from our custom code by calling some LiveCycle API.
    Thanks!

    You can use Assembler service with PDFGenerator. There is support for Web Service endpoints(SOAP). Please go through this for details : http://help.adobe.com/en_US/livecycle/11.0/Overview/lc_overview_ds.pdf
    Thanks,
    Wasil

  • Saving to various file formats

    I am having trouble sending a cover letter and resume, both in Appleworks. The recipient of these files is unable to open them, and requests that I send them in PDF format, yet I cannot find any PDF option in the save as tab. I saved them as "word" document but that didn't work either. H

    You don't say which OS version is running on your iMac. If it's not a recent OS X version, you may not be able to print to PDF without some additional third-party software.

  • Conversion of EDI File format to IDOC format

    We have a file in u201C.ediu201D format. We could not process this file with RSEINB00 ( IDoc inbound processing using file ) program.
    1-) Could we directly do our process with this u201C.ediu201D file ? Or do we have to convert this u201C.ediu201D file to IDOC format?

    If it's EDI format file (Ex: EDIFACT, X12 ...etc), we should convert the file to IDOc file by using mapping in subsystems like Gentran or TLe..etc. Conversion from edi format to idoc format will not be done in SAP.
    Reddy

  • File Adapter content conversion delimited/possitional file format.

    Hi,
    I have the following file to JDBC scenario, but having some issues with the file content conversion due to the file structure.
    Example:
    =======
    000038A020301
    000038A020101=AA1=AC1=AD=AG1=AH1=AI1=AK3049572=BN01 =BOMETLSS_ML_STD_30A7
    000038A020200=AA96=AB001=AC17000.000=AD1200=AF13021537=AE=AG8005992427=AH10
    OLRENDZZZZ
    Example 2:
    ========
    000040A020301
    000040A020101=AA1=AC1=AD=AG1=AH1=AI1=AK3049570=BN01 =BOMETLSS_ML_STD_30A7
    000040A020200=AA96=AB001=AC17000.000=AD1200=AF13021537=AE=AG8005992425=AH10
    000041A020301
    000041A020101=AA1=AC1=AD=AG1=AH1=AI1=AK3049571=BN01 =BOMETLSS_ML_STD_30A7
    000041A020200=AA96=AB001=AC17000.000=AD1200=AF13021537=AE=AG8005992426=AH10
    000042A020301
    000042A020101=AA1=AC1=AD=AG1=AH1=AI1=AK3049572=BN01 =BOMETLSS_ML_STD_30A7
    000042A020200=AA96=AB001=AC17000.000=AD1200=AF13021537=AE=AG8005992427=AH10
    000043A020301
    000043A020104=AA1=AC1=AD200619=AG1=AH1=AI1=AK3049568=BN01
    000043A020200=AA73=AB001=AC3700.000=AD1300=AF13047285=AE200619=AG8005992423=AH10
    000043A020200=AA73=AB002=AC5500.000=AD1300=AF13047285=AE200619=AG8005992423=AH10
    000043A020200=AA73=AB003=AC1800.000=AD1300=AF13047285=AE200619=AG8005992423=AH10
    000043A020200=AA73=AB004=AC5000.000=AD1300=AF13047285=AE200619=AG8005992423=AH10
    000044A020301
    000044A020104=AA1=AC1=AD200619=AG1=AH1=AI1=AK3049569=BN01
    000044A020200=AA73=AB001=AC3700.000=AD1300=AF10008536=AE200619=AG8005992424=AH10
    000044A020200=AA73=AB002=AC5500.000=AD1300=AF10008536=AE200619=AG8005992424=AH10
    000044A020200=AA73=AB003=AC2500.000=AD1300=AF10008536=AE200619=AG8005992424=AH10
    000044A020200=AA73=AB004=AC5000.000=AD1300=AF10008536=AE200619=AG8005992424=AH10
    OLRENDZZZZ
    Example Explained:
    ==============
    Position 1-9 is a "Transactional number".
    Position 10-11 is "Record type".
    Position 12-13 is "Line Item count".
    Four record types exist:
    03 = Location header
    01 = Transactional Header
    02 = Line Item
    OLRENDZZZZ = EoF marker.
    The equal sign "=" is a field separator/delimiter.
    In each delimited field, after the first equal sign in the record, the first two characters represent a field qualifier/field name tag/identifier and there only the data begins until the following delimiter.
    Each record is ended in a "CLRF"/'nl'.
    The file is build up, but not locked and only completed until the EoF marker "OLRENDZZZZ" is inserted by the application on the last record of the file.
    My solution so far:
    =============
    Record Structure: row,*
    Record Sequence: Ascending
    row.fieldNames: field1,field2,field3,ect.......
    row.fieldSeparator: =
    row.endSeparator: 'nl'
    row.keyFieldInStructure: ignore
    ignoreRecordsetName: true
    This brings the file into the integation server as xml as follow:
    ============================================
    <?xml version="1.0" encoding="utf-8"?>
    <ns:SAPtoFuelFACS xmlns:ns="urn:engenoil-com:i_fuel_facs_sap">
         <row>
              <field1>000038A020301</field1>
         </row>
         <row>
              <field1>000038A020101</field1>
              <field2>AA1</field2>
              <field3>AC1</field3>
              <field4>AD</field4>
              <field5>AG1</field5>
              <field6>AH1</field6>
              <field7>AI1</field7>
              <field8>AK3049572</field8>
              <field9>BN01</field9>
              <field10>BOMETLSS_ML_STD_30A7</field10>
              <field11>BP0003049572</field11>
         </row>
         <row>
              <field1>000038A020200</field1>
              <field2>AA96</field2>
              <field3>AB001</field3>
              <field4>AC17000.000</field4>
              <field5>AD1200</field5>
              <field6>AF13021537</field6>
              <field7>AE</field7>
              <field8>AG8005992427</field8>
              <field9>AH10</field9>
         </row>
         <row>
              <field1>OLRENDZZZZ</field1>
         </row>
    </ns:SAPtoFuelFACS>
    So far, so good.
    The problem I am having is that I have to check for the EoF marker "OLRENDZZZZ" to be present before picking up the file, else the file is not completed.
    I have tried a script to rename files in msg pre-processing in the channel, but the problem is the file channel has to be triggered and the original file mask is necessary for this, but then this mask is a valid pickup file mask. So to me it seems the only way is to do this is during the content conversion process as the files not matching the file criteria, where a EoF "OLRENDZZZZ" definition is not present, will not be picked up and be ignored until it is present or totally independent with a batch job.
    If someone has a more elegant way to solve this problem with just using the file channel configuration where every thing is pretty much apparent, I would greatly appreciate it if you could assist.
    Regards
    Willie Hugo

    The problem I am having is that I have to check for the EoF marker "OLRENDZZZZ" to be present before picking up the file, else the file is not completed.
    I suggest a script.
    Say The files are dropped in FolderA. Have a script transfer a file to FolderB only if it finds the EoF marker in a file. Thus FolderB will be what XI will poll and that will always have the complete file.
    Hope this sounds good!!!

  • Conversion of .csv file format to .xls format using java api

    Please help me with the code and the links to jars and libraries of an open source java api to convert the .csv file into .xls file with all propertirs running.
    Thanks

    umangjain87 wrote:
    Please help me with the code and the links to jars and libraries of an open source java api to convert the .csv file into .xls fileApache POI and jExcelApi are two libraries that can produce xls files.
    [A simple Google search|http://www.lmgtfy.com/?q=Java+Excel+library] could have told you as much.
    with all propertirs running.What does that mean.

  • "  Displaying the Report in PDF file Format "

    Hai Friend's,
    I have Developed a Report in Web-Intelligence .My Report is having 50 Collums and 600 Rows. The Report is too big Report. when the Save the Report in PDF File format, The PDF file Format Report is Consisting of 10 Pages, The Report Output is not coming in One Page. But my user want the Report  all the Field's :: Collumms,Rows in one Page.can Anybody let me know the solution.

    Hi Ashok,
    You can change the page size and orientation in the web.xml in the following folder.
    Web Intelligence default Page size Modification u2013 Follow these steps:
    1. Open the defaultconfig.xml file found in the following directory:
    servername\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\webiApplet\AppletConfig
    2. Look for the following code near the top of the page:
    <KEY VALUE="page*default">
    <FORMAT NAME="A4" ORIENTATION="portrait" />
    </KEY>
    3. Change this to:
    <KEY VALUE="page*default">
    <FORMAT NAME="LETTER" ORIENTATION="portrait" />
    </KEY>
    4. Save the file.
    All the Best,
    Madhu...

  • RWRBE60.exe error when generating a report to a file format

    Hi people,
    I'm employed as a consultant by a major Petrochemical facility in South Africa.
    My problem is as follows:
    Our product dispatching system contains a number of reports which need to be generated to a file format (either PDF, RTF or Text).
    Whenever one of the users attempts to do the above in the Reports Previewer
    (by clicking on "File" -> "Generate to File" -> "Text"); the following error is displayed:
    "RWRBE60.exe - Application Error. The instruction at 0x00281036 referenced memory at 0x00000000. The memory could not be read."
    This error only occurs when they attempt to run a report through the Application itself.
    I've recompiled and executed the same report(s) using Reports Builder 6, and it generates the file(s) with no problems whatsoever!
    Only when running said reports through the Production application, does this error appear.
    Your feedback will be highly appreciated!
    Thanks!

    This certainly looks like a bug, but you should probably check and make sure that you're on the latest patch set (or at least patch set 10 - Reports 6.0.8.19) before contacting support and pursuing further.
    Hope this helps,
    Danny

  • Adobe Reader 9 and XI do not save other formats to PDF.

    I had Adobe Reader 9 on  PC Windows 7. I am sure I used to be able to save other file formats to PDF with Reader, but when I try now, I get the sign saying "The printer name is invalid" and the file wouldn't be saved to PDF. I tried uninstalling Reader 9 and installing Reader XI. Exactly the same thing happens. Does anyone know what this sign means and how the problem can be solved? Any suggestions gratefully received.
    Chris Swanton
    UK

    Adobe Reader doesn't save other formats as PDF.
    You probably had Adobe Acrobat if you remember doing this. They look similar.

  • File Formats Supported

    Two HP Pavilion laptops, a dv4 and a dv5, Windows 7 Professional, no changes or upgrades other than the normal Windows updates. On both HP laptops, the CD-ROM does not recognize various file formats such as JPEG, JPG, WAV, etc. The dv5 did recognize a CD-ROM with JPEG files yesterday, but it does not read the CD today. It does read new music CDs, but not previously recorded CD with MP3 or JPG formats.

    Its iPod. Not iPot.
    iPod supports the following formats.
    Audio Support: AAC (16 to 320 Kbps), Protected AAC (from iTunes Music Store), MP3 (16 to 320 Kbps), MP3 VBR, Audible (formats 2, 3 and 4), Apple Lossless, WAV, AIFF
    Photos Support: Syncs iPod-viewable photos in JPEG, BMP, GIF, TIFF, PSD (Mac only) and PNG formats
    Video Support: H.264 video: up to 768 Kbps, 320 x 240, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
    MPEG-4 video: up to 2.5 mbps, 480 x 480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats

  • Bank File and File Formats

    When sending ach file to bank after it gets placed on application server (what is application server transaction code) a direct interface or not? If not what is a direct interface?
    What is flat file and xml file. Please tell the difference with example??
    What are various file formats sap supports for importing ebs in sap? What information should be requested from bank?

    Hi Sheena,
    1. Outbound files - You can create a ACH file in any format you want. SAP support text file, IDOC.
    After you run your payment program - F110 - the last step is to create the payment medium. When you run this payment medium program it creates the file in a specific format as per your configuration. This file can be stored in your hard drive (C:) or in the SAP server based on the path given by you in the variant.
    You can use T-code FDTA to view the file.
    If it gets stored in C: you can just go to the directory and double click the file.
    If it is stored in SAP server you can use transaction AL11 to view the file.
    2. Inbound file  - The electronic bank statements come in various formats. The most common formats are BAI in US, Multicash in Germany, MT940 in Europe. Each format has been defined separately, you can go to Googe and search for details about these format.
    SAP has standard program which read these formats and post them to your General Ledger.
    If you have more questions, please post them and I would try to answer.

  • Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exact

    Why Acrobat x professional is changing the text formatting specifically the font family  and the font size of the text in my pdf on exporting it to Microsoft word file format ?How should i stop Acrobat x professional from doing that so that i get an exactly same word file on exporting it from its pdf counterpart?

    I was testing the preciseness & efficiency of Adobe acrobat x professional's doc conversion capabilities. As i have to take a document editing project in future which is going to need lot of pdf to word and vice versa conversions . What I did was I created a test word document converted into a pdf using a pdf maker in my word 2007 , Acrobat did convert the document from word to pdf keeping everything in the source file intact , However when i tried the other way round and attempted to convert the same pdf to word 2007 file format I lost my formatting ?So the font that I used to create the pdf are the ones taken from word 2007 which i believe is using the fonts that are installed in my computer. Any suggestions on how to preserve the formatting of the document after converting it from pdf to word file format?
    Regards
    Mike

Maybe you are looking for

  • Distribute Form does nothing in Acrobat 9.0 Standard with XP Pro

    I am using Windows XP Pro SP3 and Adobe Acrobat 9.0.0 Standard via Enterprise Distribution (all features avaialble, none disabled). I made sure that (up top) Advanced > "Extend Forms Fill-In & Save in Adobe Reader..." was selected and saved in this d

  • Lightroom 4 issues

    I have installed the upgrade of lightroom 4 and windows 7 will not open it stating there are compatibility issues. What do I do?

  • File transfer to K-1 from Linux Mint

    Hi, I've had my K-1 for just two days now and it's prompted me for updates 5 or 6 time What's with that? It seems that at least one of these bumped me up to Android 3.2. Right now my main issue is that when I plug the usb cable to my laptop to transf

  • Declaration of Rabge table Paramater in Global class method

    Hi Friends, I have created a Global class with a method GET_DATA. In that method,i have written the like  : select * from kna1 into table it_kna1where kunnr in S_kunnr. But, I am getting the error with Range table S_KUNNR. Kindly, Let me know how I s

  • WRV200 Wireless LED Problem

    Hi guys, I just pruchase the WRV200, but aftre power on the router the Wireless LED is keeping flashing, already turn off any related wireless transit service like Boradcasting. But the LED keeping flashing in no any wireless connection. Could you he