Open XPS File

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
AnMuWK
User
Posts: 30
Joined: Thu Dec 19, 2019 2:20 pm

Open XPS File

Post by AnMuWK »

Hi Tracker Team,

we wanted to handle some specific automatic action with an XPS document, but we are not able to find a starting point. We recognized, that the Editor UI component is loading XPS and OXPS documents wihtout any issues.
So we though that we would also be able to open such documents with IPXC_Inst.OpenDocumentFrom, but that method gives us an "Invalid file format".

In documentation there is the IXPS2PDFConverter mentioned and we thought that we just convert the XPS to pdf. But we can not find a way to create an instance of this interface.

Can you guide us to either open the XPS or us IXPS2PDFConverter interfaces, please?

Regards
Andreas
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3556
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: Open XPS File

Post by Ivan - Tracker Software »

Opening XPS files is done on the Editor level (IPXV), not the Core level (IPXC).

You have to use Editor's openDoc operation for that.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.