Converting XPS file to PDF

Hello, 
I need to write program which automatically convert all xps files from foler into pdfs. One of my ideas is using pattern -> Opening XPS file, then printing it with "Adobe PDF" printer. 
Can you give me any help how I can write a program to do it? Or maybe you have another idea how I can do it? 
Thank you for your help. 
Best regards,
Robert

Hello, 
Thank you for your answer. I really appreciate your help, but I need to write this conversion part manually and put into my macro (which is making a lot of more stuff, and this will be one of it functionality). Do you have any idea how I can do it?
Basically, write I wrote before it just need to open a file, and print it with "Adobe PDF" printer. Unfortunately, I don't know how to do it.  
Hello,
For converting xps file to pdf, if your pc installed Office, then you could consider the way shared in the following thread.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/4301147c-cc84-43ed-993f-691a8cb682b1/convert-xps-to-pdf-file-in-vs-2008?forum=vbgeneral
something like  (don't forget to reference Microsoft.Office.Interop.Excel)
Dim Exapp As New Microsoft.Office.Interop.Excel.Application
Dim ExWB As Microsoft.Office.Interop.Excel.Workbook = Exapp.Workbooks.Open("yourfilename")
ExWB.ExportAsFixedFormat(Microsoft.Office.Interop.Excel.XlFixedFormatType.xlTypePDF, "yourexportedfilename")
and
Hi narayanan_1983,
This article will tell you how to convert XPS file to PDF in vb.net:
http://www.aspose.com/docs/display/pdfnet/Convert%20XPS%20files%20to%20PDF%20format
From this article, we know that you could use  a class named
[{{XpsLoadOptions}}] which is used to initialize a LoadOptions object. Later, this object is passed as an argument during the
Document object initialization and it helps the PDF rendering engine to determine the source document's input format.
' Instantiate LoadOption object using XPS load option
Dim options As Aspose.Pdf.LoadOptions = New XpsLoadOptions()
' Create document object
Dim document As Aspose.Pdf.Document = New Aspose.Pdf.Document("D:\source.xps", options)
' Save the resultant PDF document
document.Save("D:\resultant.pdf")
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to convert XPS file to a PDF one via Adobe Acrobat XI Pro with command line?

    Hello,
    How to convert XPS file to a PDF one via Adobe Acrobat XI Pro with command line?

    It is not good. If I need to export some hundred of separate *.XPS files to hundred separate *.PDF files, I need to do this manually with each file. It is stone age.

  • Error: EXOpenExport() while converting xlsb file to PDF

    I am getting this error while converting .XLSB file to PDF using IBR :Step PDFExport forced conversion failure by conversion engine because of error: EXOpenExport() failed: no filter available for this file type (0x0004). Can anyone tell me how to resolve this issue.
    Thanks in advance.

    Thank you for all your intrest.
    The error message I get is... "an unexpected error occured. PDFMaker was unable to process the request".
    When I then try to convert again, the system opens the ppt, but then does not do anything, and the error message does not show, for all presentations I try to convert.
    I have also tried using the ribbon, but the button does not do anything once I have clicked.
    I can print to PDF, but this provides an output which is not suitable, because it shows as if it each slide was printed on to paper and then put in PDF.
    I have also uninstalled and reinstalled Acrobat to make sure nothing was corrupt.

  • When I converted a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How can I solve this problem?

    When I tried to convert a file from PDF to WORD.DOC it opened as Read Only and I'm unable to alter any of the text.  How do I solve this problem?  I don't know how to change it from Read Only.

    Dear Sara
    Thank you very much for sending the converted file.  Yes, I am able to edit it - that will be very useful to me and I appreciate your help.
    Referring to your previous message when you said you'd converted via Acrobat and not Acrobat.com, I'm converting via Acrobat.com because that's the only option that is shown (how do I convert via Acrobat? - perhaps that would be more successful).  I'm using the Export PDF website, and the OCR is enabled to "Recognize text in English UK".  However, I've just tried converting a different LPA pdf form, this time for Health & Welfare https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/245571/LPA114_He alth_welfare_LPA.pdf and again I have the same problem as before.  I've altered it from "Read only" and thought I'd then be able to enter text, but "Drawing Tools" is shown in the pane and I'm unable to enter anything onto the form - everything appears to be in images.  Also, the lettering on the heading of' page 1 has become jumbled, with the word "Public" overlaying the word "Guardian."  Any suggestions as to what it is I'm doing wrong would be welcome - I don't like to be beaten!
    Regards,
    Judith.

  • Not able to convert word file to PDF using Adobe Acrobat 9 Standard

    Hi,
    I am not able to convert word file to PDF using Adobe Acrobat 9 Standard. When I try to convert, it starts the process and in between I am getting this prompt, as shown in figure below and the conversion process stops. The PDF is not created.
    Note: The filename 'Acr85.doc' in the above prompt keeps changing and is random.
    I tried clicking Yes, No and Cancel on the above prompt, but the conversion process just stops and PDF is not getting generated.
    I am able to create PDFs from web pages. No issues with that. Not working only with Word.
    Can someone help me with this.
    Thanks,
    Vinay Jaassiel Kankipati
    Technical Writer

    In MSWord please changes the settings as "Adobe PDF" menu => "Change Conversion Settings" goto Tab Bookmark and clicks the option Convert Word Bookmarks. Now you convert the Doc to PDF you can achieve the Bookmark.
    Hope this help you
    Sudhakar

  • Acrobat XI Pro successfully installed, but it failed in converting word files into PDF, why?

    I just installed Adobe XI Pro through the download assistant, it looks the installation went well, but when I tried to convert word files into PDF (tried many times), it failed. Anyone has the same problems, any solutions?

    Please reply with more information - what your operating system is, do you have Office installed, and what exactly is happening. Is there an error message, does the application crash, and from where are you starting the conversion (using Word and PDFMaker, using Acrobat's Create button, or batch processing).

  • How do I convert a file to PDF without subscribing?

    I just downloaded Adobe Reader X, I'm running Windows 7, When I try to convert a file to PDF I'm required to subscribe? I thought this was free? Any ideas?

    Adobe Reader is free - and it reads PDF files; it doesn't create them.
    Adobe CreatePDF and ExportPDF are online subscription services for people who don't want to buy Acrobat. There are links from inside Adobe Reader so users can find those services more easily, but functionally they're unconnected to Reader.

  • I purchased the Adobe PDF Pack but it won't allow me to convert any files to pdf or combine multiple files to into 1 pdf form. It keeps saying "Error occurred while trying to access the file". WHY

    I purchased the Adobe PDF Pack for $7.50/month (or $89.99/yr) but it won't allow me to convert any files to pdf or combine multiple files into 1 pdf form. It keeps saying "An error occurred while trying to access the service". WHY is this happening & How can I fix it?

    Hi hpmg,
    It seems you are trying to access the service via Adobe Reader. Make sure you are signed in with your Adobe ID. Is Reader updated to the latest patch v 11.0.09?
    It might be possible that a firewall or antivirus might be breaking the connectivity from Reader to the server.
    Try accessing the service from the browser: https://cloud.acrobat.com/exportpdf  and check if that works for you.
    Regards,
    Rave

  • How to convert a file from pdf to txt in java

    hi,
    in my project ,I want to convert a file from pdf to txt using java api. If anyone
    have any idea about it plz help me.

    Google has several ideas. :)

  • When i convert any file to pdf, date is automatically added in the header in pdf file. How to change

    When i convert any file to pdf, date is automatically added in the header in pdf file. How to change that?*

    heres a screenshot
    heres a screenshot of how i convert them

  • Advice needed for converting AI file to PDF

    I'm working on some 11x17 page size illustrator files that are of aerial photo maps (with a legend).
    Can someone offer me some advice on how to best convert these files to pdfs and keep the photo quality high and keep the file size as low as I can get it??? I basically can convert it to a pdf but I don’t understand the compression settings section (assuming that’s what needs to be changed in order to accomplish this?).
    Thanks

    This is a trick I find works well.
    Just save it as a pdf and open in Acrobat, then (Acrobat X) go to tools and then Prepare for Web Publishing, use all the default settings.
    This should reduce the file as much as 1/3 the size sometimes even more.
    It has no effect on the qquality.

  • Converting Framemaker files into PDF progaramatically using publishing server

    Hi All
    Background:
    We are going for upgrade of  Frame maker 8 which is on unix system  to FM 10 or 11. We are using Framemaker mainly for renditions, i.e to convert the fm documents to PDF. To convert fm document to PDF we are using the below mentioned command line utility available in FM 8.(on unix). /opt/app/frame8.0/bin/fmprint -i -p Sample.fm.fmtpl Sample.fm Currently the the fm file which need to converted to PDF and the FM 8(installed) are available on the same unix system ,so we were able to initiate/use the command line utility of FM 8. The rendition of the FM to PDF is On -Demand.( We are not running any batch activities/ bulk renditions).We are rendering the document as soon as the document  is available.
    Requirement:
    As we are going to  upgrade the FM to newer versions which would be installed on the Windows machine as Frame maker 10 or 11 will not support unix plat form, so can you please let us know which option is better to use i.e we want to convert fm file to PDF using java program without any manual intevention using publishing server/client version.
    can any one help us as it is very urgent for us.
    please let us know the ways to do and links for helpful documents .
    thank you very much for your help in advance!!\
    Best reagrds
    Ramesh babu

    Hi Ramesh...
    Another alternative (if you need more control over the doument creation) is to use Leximation's AutoFM ..
        http://leximation.com/tools/info/autofm.php
    Cheers,
    ...scott
    Scott Prentice
    Leximation, Inc.
    www.leximation.com

  • About converting a file into PDF

    why an error always occur when converting a file into pdf ?

    oceanblue1968 wrote:
    why an error always occur when converting a file into pdf ?
    Why is, when I just missed my train, the next train always late? (sigh)

  • Convert iPhoto file into pdf file

    Need to convert iPhoto files in pdf format to send as email attachment to a recipient who requires it in this format.  How do I do it?

    There might be a quicker way, but an alternative is:
    - Locate the photo(s) in Finder
    - Open them in Preview
    - File > Print (or CMD + P)
    - In the bottom left there should be a drop-down menu for PDFs.  You can then choose to save it as a PDF, or email it as a PDF attachment.
    This works for single and multiple photos.  Bear in mind that they will save at the original resolution, so if you want the file to be smaller, make all the changes you want to in iPhoto then locate them in Finder.
    Hope this helps.

  • Just upgraded to Office 365. Reinstalled my Acrobat 7.0 standard. All I need to do is convert office files to pdf but it wont work. Any suggestions?

    Just upgraded to Office 365. Reinstalled my Acrobat 7.0 standard. All I need to do is convert office files to pdf but it wont work. Any suggestions?

    Hi,
    Acrobat 7 is not tested with Office 365. However your PDF Printer is working fine then you can print your office files to it.
    Regards,
    Anoop

Maybe you are looking for

  • Error when deleting a customer table

    Hi guys, im deleting a Z table with a loop, and the following error is displayed after 10 minutes. the log reads as follow. 1. ORACLE storage space request failed.                                     (ORACLE error 1547)                               

  • Popup for new features of an own developed ABAP

    Hi, from time to time new features are integrated into existing ABAPs and I want to inform the users of these ABAPs about the new features. I would like to have a general mechanism where a screen with some documentation pops up when the user runs the

  • Client Proxy Naming convention problem

    Hi I have created client proxy for the outbound interface for the scenario sap-xi-file...due to some naming convention problem i have to delete and create new all repository objects except message interfaces... so when i try to re-create the client p

  • I keep getting kicked off of Internet

    When I'm on the Internet browsing I will get kicked out. How can i fix this?

  • Lightroom 2.5 hopeless on Snow Leopard

    I have Lightroom 2.5 (all current updates) which freezes on Snow Leopard 10.6.2 routinely.  This is on a Mac Pro 2x2.26 Quad with 16 GB ram.  On my Macbook Pro 15  Laptop,  Lightroom 2.5 works just fine under Snow Leopard. I have trashed preferences