Archive for October 30th, 2009

A Free Win32 Native Code version XPS Viewer

Screenshot of XPS Viewer:

Screenshot of XPS Viewer

Software Imaging have released a new XPS viewer as a free download. The viewer uses Software Imaging’s own PrintMagicXPS technology to render the XPS documents, which differs from other XPS viewers because it is developed in C++ native code, and therefore has no dependency on .Net or managed code.

Features include:

  • High quality rasterizer which leverages Software Imaging’s PrintMagicXPS technology
  • Full compliance with the XPS 1.0 specification
  • Easy to use and view your XPS documents
  • Priority given to the rendering of the first page of a multiple page XPS document
  • Multi-threaded application for improved performance on multi-core systems
  • Developed in C++ native code, therefore no dependency on .Net and managed code
  • Two rendering modes: Aliased and Anti-Aliased
  • Zoom and rotate views
  • Colour management

Supported Operating Systems

  • Microsoft Windows Vista
  • Microsoft Windows Server 2003
  • Microsoft Windows XP SP2

Prerequisites on Download Page

To run XPS Viewer on Windows XP Service Pack 2 or Window Server 2003 the following components will need to be downloaded and installed:

btw, Windows 7 Will Include New Win32 API’s For XPS, and the new API’s will be:

  • XPS API provides creation, manipulation, reading, writing and other services for XPS documents and print streams
  • OPC API provides creation, manipulation, reading, writing and other services for Open Packaging Conventions-based file formats, including XPS, OOXML and an increasing number of industrial strength third party file formats
  • XPS Print API provides a new entry point for applications to benefit from the enhanced XPS Print Path, irrespective of whether the final output device supports XPS

reference,
http://digitaldocuments.debenu.com/2008/11/12/windows-7-will-include-new-win32-apis-for-xps/
http://digitaldocuments.debenu.com/2008/10/01/new-xps-viewer-from-software-imaging/
http://softwareimaging.com/products-services/XPSViewer/index.asp

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 use Adobe Acrobat to Optimize and Reduce PDF File Size

Because I am working on porting pdfsizeopt to windows, so I am also keeping an eye on other solution about how to optimize and reduce PDF file size, and now I like to introduce an article written by the Creative Team at Adobe.

Distributing documents as Adobe? PDF files can reduce the problems that may occur when you exchange large presentation or page-layout files. In many cases, you can make your Adobe PDF file even more compact without compromising the document’s integrity. The PDF Optimizer in Adobe Acrobat? 7.0 Professional gives you easy access to several options that can help you reduce the file’s size, including compression options that are comparable to the ones available when you create an original Adobe PDF file by using Adobe Acrobat Distiller?.

main_int

1.
Use the Save As command.

After you make any final changes to the Adobe PDF document, choose File > Save As. Save the document with the same name to overwrite the original with your changes.

When you choose Save As, Acrobat rewrites the entire PDF document as efficiently as possible. When you choose Save, changes are appended to the file, meaning the file size might be increased. By default, Acrobat also optimizes a PDF document for faster web viewing when you choose Save As. Documents optimized in this way can be downloaded one page at a time from a web server or network, reducing the time it takes to access and view them.

step01_int

2.
Audit the use of space in the file.

Choose Advanced > PDF Optimizer. Click the Audit Space Usage button. The audit results list the bytes used by each element and its percentage of the document’s total size.

The audit results can help you identify the most effective ways to reduce the file’s size by showing which elements are significantly large. The audit reports the total number of bytes used by fonts, images, bookmarks, forms, and comments, as well as the total file size.

step02_int

3.
Optimize images, scanned pages, and transparency.

If you created your PDF document with a scanner, use the adaptive compression slider in the Scanned Pages panel to balance file size and quality based on the color values in the document. For all other documents, use the Images panel to select compression options for color, grayscale, and monochrome images. (Selecting adaptive compression disables options in the Images panel.)

Downsampling lowers the resolution of images. Compression eliminates unnecessary pixel data. In general, you should use JPEG for photographs and other images in which color changes gradually. ZIP is good for illustrations with large areas of solid, flat color. JBIG2 works well for monochrome images. If you choose JPEG compression, select a quality level to determine how much pixel data is removed.

If your file contains artwork with transparency, you can further reduce file size by flattening transparency in the Transparency panel. Transparent areas are divided into rasterized or vector regions.

step03_int

4.
Unembed fonts, when appropriate.

On the Fonts panel, select the fonts you want to unembed. Ctrl-click (Windows) or Shift-click (Mac OS) to select multiple fonts. Then click the Unembed button. To remove a font from the list of those to be unembedded, select it and click the Retain button.

Fonts often account for a large percentage of a PDF document’s file size. You can safely unembed fonts if you know that they are already installed on the computers of the people who will read your PDF document. If you unembed a font that isn’t available to someone reading your PDF document, Acrobat will display a substitute font when the document is opened on their computer.

step04_int

5.
Remove unused elements and clean up the document.

On the Discard Objects panel, select the version of Acrobat that you want to make the document compatible with, and then remove any additional items that you don’t use.

On the Clean Up panel, choose a compression option and then select which items to remove or discard from the file. The Clean Up panel lets you remove elements from the PDF document that you don’t need. The options that are selected by default don’t affect functionality, but other options may. Use caution when selecting unfamiliar options. If you choose to experiment, save the optimized PDF file with a new name so that you leave the original PDF document unchanged.

step05_int

6.
Save the optimized file.

After you select the options you want, click OK. Then save the optimized PDF document with the same name to overwrite the original—or, if you want to compare the optimized document with the original, save it with a new name or to a new location.

Acrobat retains the settings in the PDF Optimizer dialog box. They appear as default settings the next time you use PDF Optimizer.

step06_int

7.
Optimize files in batches.

If you want to optimize multiple documents at once, consider using a batch processing sequence. For more information, see “Processing Adobe PDF documents in batches” in Acrobat Help for information.

By the Creative Team at Adobe. Copyright ?2005 by Adobe Systems Incorporated.

From: http://www.adobe.com/designcenter/acrobat/articles/acr7optimize.html

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

pdfsizeopt-a Free and Open Source PDF Manipulation Tool to Reduce PDF File Size

pdfsizeopt is open source project hosting on Google Code, the main feature is PDF file size optimizer.

About

pdfsizeopt is a collection of best practices and scripts for Unix to optimize the size of PDF files, with focus on PDFs created from TeX and LaTeX documents. pdfsizeopt is developed on a Linux system, and it depends on existing tools such as Python 2.4, Ghostscript 8.50, jbig2enc (optional), sam2p, pngtopnm, pngout (optional), and the Multivalent PDF compressor (optional) written in Java.

The author says it is A Linux solution, and I have test it on my DreamHost, it works. I have tried a PDF, the original PDF is 5.6M, and the optimized/converted PDF is 4.4M, great!

Another great thing, I am working on port it to windows, and all tools needed are ready(some download from website, some compiled by myself, for example jbig2), and have successfully modified pdfsizeopt.py to let it work under windows now, though it still has many bugs(I have submit them to the author) and I will release it later.

Installation instructions

Please note that not all the software mentioned in the instructions below is free software (if we consider freedom). Details:

  • pdfsizeopt: free
  • Python: free
  • Ghostscript: free version available
  • Java: free version available (OpenJDK)
  • sam2p: free
  • jbig2: free (http://github.com/agl/jbig2enc/tree/master)
  • png22pnm: free
  • pngtopnm: free
  • Multivalent.jar: not free software, but you don’t have to pay for using it, and you can download it from the official web site without having to pay
  • PNGOUT: not free software, but you don’t have to pay for using it, and you can download it from the official web site without having to pay

Necessary:

  1. A Unix system is needed, Linux is recommended. The following instructions have been tested on Debian Etch and Ubuntu Hardy.
  2. Install Python 2.4, Python 2.5 or Python 2.6 from package. Earlier or later versions won’t work.
  3. Install Ghostscript 8.61 or later. (You may try pdfsizeopt with Ghostscript 8.54 as well, but 8.54 has some known font conversion problems, so it will produce an error for some PDF files.) Earlier versions won’t work. Make sure the command gs is on your $PATH.
  4. Create a directory named pdfsizeopt.
  5. Check out the source code at http://code.google.com/p/pdfsizeopt/source/checkout , or just download http://pdfsizeopt.googlecode.com/svn/trunk/pdfsizeopt.py as pdfsizeopt/pdfsizeopt.py.
  6. Install a recent sam2p and copy the binary to pdfsizeopt/sam2p. For Linux, the recommended binary is http://pdfsizeopt.googlecode.com/files/sam2p . Please note that the sam2p in Ubuntu Intrepid and Debian Etch is too old. Either compile it yourself, or use the recommended download above.
  7. Install pngtopnm from package, or download the Linux binary from http://pdfsizeopt.googlecode.com/files/png22pnm to pdfsizeopt/png22pnm.

Optional, but strongly recommended:

  1. Install Java 1.5 or newer from package. javac is not necessary. Sun’s Java and OpenJDK are OK, gcj and gij won’t work. Make sure that java -version works and prints something at least 1.5.
  2. Download Multivalent*.jar from http://sourceforge.net/project/showfiles.php?group_id=44509&package_id=37068 (example: Multivalent20060102.jar), and copy it to pdfsizeopt/Multivalent.jar.
  3. Compile jbig2 for yourself, or download the Linux binary from http://pdfsizeopt.googlecode.com/files/jbig2 to pdfsizeopt/jbig2.

Optional, but recommended:

  1. Download the PNGOUT binary for your system. Recommended for Linux: the http://static.jonof.id.au/dl/kenutils/pngout-20070430-linux-static.tar.gz archive on http://www.jonof.id.au/kenutils . For other PNGOUT downloads, visit http://advsys.net/ken/utils.htm . Copy the file pngout-*-linux-static to pdfsizeopt/pngout.

Try it:

  1. Create a file test.pdf, and run pdfsizeopt.py --use-pngout=true --use-jbig2=true --use-multivalent=true test.pdf. The output file will be test.pso.pdf.
  2. If you haven’t installed some of the tools above, try changing =true to =false in the command line.

references,
pdfsizeopt home page
Convert JBIG2 to PDF with free and open source software agl’s jbig2enc
Windows version JBIG2 Encoder-Jbig2.exe

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