0

I extracted an xps to a folder, edit some images and i want to rezip it in order to keep it openable with the XPS viewer, but there is something wrong!.. either if i dont change anything, i cant rezip it an open it with the XPS viewer.

I am using windows "send to compress folder" and WinZip with "No compression | Super Fast | Enh. Deflate" and ICSharpCode.SharpZipLib.dll. But no Success.

Please Help!

Fraga
  • 1,361
  • 2
  • 15
  • 47

2 Answers2

1

You need to use the VSTO power tools for Visual Studio to edit and repack XPS files. Using any ZIP program won't work because Microsoft does something non-standard in the ZIP headers that causes XPS viewers not to recognize the XPS if you ZIP it yourself.

VSTO power tools

Ed Bayiates
  • 11,060
  • 4
  • 43
  • 62
0

This usually means you've ended up zipping the enclosing folder.

Navigate to the folder containing "[Content Types].xml", press Ctrl+A to select all items, right-click and select Send To Compressed Folder, and rename the resulting .zip to .xps.

mloar
  • 1,514
  • 11
  • 11
  • I've done exactly that and nothing! I succed with the DotNetZip library!, but i dont know why the other way fail. – Fraga May 19 '12 at 04:00