Archive for April 16th, 2009

Convert PDF to XML with Microsoft XPS Document Writer

After installed either .Net Framework 3.0 or the XPS Essential Pack on Windows XP SP2/Windows 2003, or you use Vista, you would discover that a “Microsoft XPS Document Writer” appeared in your “Printers and Faxes”. but what is it?
The Microsoft XPS Document Writer (MXDW) is a print-to-file driver that enables any Windows XP SP2/2003/Vista application to create XML Paper Specification (XPS) Document files.

An XPS file is in fact a ZIP archive using the Open Packaging Convention, which contains the files which make up the document. These include an XML markup file for each page, text, embedded fonts, raster images, 2D vector graphics, as well as the digital rights management information. The contents of an XPS file can be examined simply by opening it in an application which supports ZIP files.

As you know, it is not a easy job to convert PDF to XML, even using Adobe Acrobat, but I found The Microsoft XPS Document Writer can easily print PDF to XML, also including images.
But it has an issue when you try to Print the PDF document double-byte characters(for example Chinese PDF document), all double-byte characters will be converted to vector graphics.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

XPS Viewer Portable Version for Windows XP

I tried to install Microsoft XML Paper Specification Essentials Pack(aka XPSEP or XPS Essentials Pack) many times on my PC, but failed, after searching, I got the answer. Then I thought how about just copy the necessary file on a fresh PC to run the XPSEP, after tested, it works. So I share it here for the friends who do not want to install XPSEP or failed to install XPSEP.
Download it now,
XPS Viewer EP-portable(2.19M)

P.S.
If you just want to view XPS, you can use IE plug-in after install Windows XP SP3, but it is very slow, and once you set your Firefox as default browser, you have to try to browser xps document with IE to open it.

Oct 20, 2009
If you do not want to install .NET Framework 3.0, I recommend you A Free Win32 Native Code version XPS Viewer or try java-axp, java version XPS Viewer(free and open source)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride

How to install XPS Essentials Pack under Windows XP

I tried to install XPS Essentials Pack(aka XPSEP) many times on my PC, but all failed, the error message is,

“There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected….”

My PC has installed Windows XP SP3, and .NET Framework 3.5.
After searching, I got the following solution,

There is a brute force solution to that :-)
1. Make sure you uninstalled the .NET 3.x things (no %windir%\system32\xpsviewer folder anymore)
2. Make sure you have WIC installed or install it.
3. Get yourself Orca, the MSI database editor from MS (you may have to get a Windows Platform SDK in order to get access to the Orca.msi); I used Orca 3.1.4000.2049
4. Make a copy of your XPSEP MSI.
5. Right-click on the copy – “Edit with Orca”
6. Go to InstallExecuteSequence.
7. Find the Row labelled WICUpdateInstallAction – Right-click – “Drop Row”.
8. Save.
9. Double-click the MSI copy you just edited.
10. Hopefully, the installer should run through fine.
11. Reinstall .NET 3.x and all other things you uninstalled beforehand.

unlucky, I can not successfully uninstall .NET 3.0, So I tried on my Virtual PC, it did not install SP3 and .NET Framework, and succeeded.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • DotNetKicks
  • Fark
  • Fleck
  • Gwar
  • Haohao
  • IndianPad
  • Internetmedia
  • LinkaGoGo
  • MyShare
  • Netscape
  • NewsVine
  • Rec6
  • Reddit
  • Scoopeo
  • Slashdot
  • StumbleUpon
  • Technorati
  • Webride