Page 1 of 2

How to display vector formats like PDF, AI,...? GhostScript!

Posted: Mon Nov 01, 2004 9:56 pm
by helmut
XnView is intended for working with raster graphic files, that is image files which consist of pixels. Apart from this, XnView also supports some vector formats using GhostScript, e.g.:

- AI (Adobe Illustrator, not all subformats)
- PDF (Adobe Portable Document Format)
- PS (Postscript)
- EPS (Encapsulated Postscript)

GhostScript allows for printing and displaying vector graphics and converting these to raster graphic files.

Please note:
- Only reading these formats is supported.
- For these formats thumbnails are not displayed because of performance reasons.
- For AI files not all subformats are supported
- For CAD vector files, there's a special plug-in available, see topic "How to view .dwg files?"

1.) Download AGPL Ghostscript
For using GhostScript with XnView, you simply download AGPL GhostScript (~12MB) and install it on your computer:
  • For XnView Classic (Windows) and XnView MP 32 bit:
    Download AGPL GhostScript 32-bit from website http://www.ghostscript.com/download/gsdnld.html , choose the version for your Operating System (Windows, ...), link "Ghostscript x.xx for Windows (32 bit)"".
  • For XnView MP 64 bit:
    Download AGPL GhostScript 64-bit from website http://www.ghostscript.com/download/gsdnld.html , choose the version for your Operating System (Windows, ...), link "Ghostscript x.xx for Windows (64 bit) ".
Currently XnView does not support the 64 bit version, so please make sure to download the 32 bit version.

2.) Run Ghostscript setup
Run the setup file you have just downloaded (e.g. "gs910w32.exe"), the setup will guide you through the installation process.

3.) Restart computer
It's recommended to restart the computer after installation of AGPL Ghostscript. Otherwise interaction between XnView and Ghostscript might not work.

That was the installation part. XnView will automatically recognize that GhostScript is installed and interact with it for displaying files that have one of the formats listed above.

4.) Test correct installation
Check correct installation and viewing by browsing with XnView to a directory containing PDF, PS, AI, or EPS files to check whether support for these formats works properly.
Here's a PDF-sample which you can download and use for testing. Right-click on the link and save the PDF document to a local directory. Then, start XnView and open the PDF in XnView.

5a.) Fine tuning: Resolution
By default the raster images generated have 72dpi. If you want more detailed raster images set a higher resolution (DPI, dots per inch) in Tools > Options, Category "General > Read/Write", Tab "Read" > EPS/PS/AI/PDF".

5b.) Fine tuning: High quality display
When viewing vector images, often they contain thin lines and/or text. It is strongly recommended to activate high quality display for both thumbnails and images. In options dialog, category "Browser > Thumbnails" activate the checkbox "Use high quality". And in category "View" activate the checkboxes for "High zoom quality (slower)". I recommend to activate "Reduce" and "Fit to Window/Desktop". Please note that when activate "Enlarge" zooming might become very slow for large images and large zoom factors (>400%).

5c.) Fine tuning: Thumbnails for Vector images.
Converting vector files to image files needs quite some calculation. For this reason by default you will not see thumbnails for vector images. If you do not care too much about performance and want to see thumbnails for vector graphics, in Tools > Options, Category "Browser > File List" check the checkbox "Show as thumbnail" in the row labeled "AI, PS, PDF files". Then, browsing a folder with vector files will be slow because XnView creates all the thumbnails. Browsing the same folder for a second time will be fast because XnView will load the thumbnails from its thumbnail cache and display them.


Related topics:
Cannot open AI file
Can't open EPS files?
"How to view .dwg files?"
XnView and Ghostscript
Show thumbnails of PDFs

Problems

Posted: Tue Jan 24, 2006 11:38 am
by asd
I have installled AFPL Ghostscript 8.53 and xnview but I can't open .ai files, I have opened with illustrator and all it's ok

I have rebooted the machine and problems continue

What can I do?


Thanks

Re: Problems

Posted: Tue Jan 24, 2006 2:45 pm
by xnview
asd wrote:I have installled AFPL Ghostscript 8.53 and xnview but I can't open .ai files, I have opened with illustrator and all it's ok

I have rebooted the machine and problems continue

What can I do?
Ghostscript doesn't support all format of AI files

Problems

Posted: Wed Jan 25, 2006 2:10 pm
by asd
I have installed cad plugins correctly and I can open this files form xnview > Open file, But I like to open files *.dwf and *.dxf only making double click. I have associated this extensions (in windows) to xnview and in ossaciations from xnview optiona but I can't open with double click this files.

Thanks

Re: Problems

Posted: Wed Jan 25, 2006 7:55 pm
by helmut
asd wrote:I have installed cad plugins correctly and I can open this files form xnview > Open file, But I like to open files *.dwf and *.dxf only making double click. I have associated this extensions (in windows) to xnview and in ossaciations from xnview optiona but I can't open with double click this files.

Thanks
Please read FAQ "How to associate image files with XnView".

Posted: Tue Aug 14, 2007 6:10 am
by helmut
AFPL GhostScript is available as 32bit version and as 64 bit version. Please be aware that XnView 1.91 supports the 32 bit version, only.


Related topic:
- "AFPL ghostscript was not found on your system"

Posted: Tue Aug 14, 2007 6:13 am
by ckit
AFPL GhostScript has been discontinued in favour of GPL Ghostscript.
but I have to admit AFPL GS 8.54 works flawlessly with XnView.

Posted: Fri Dec 21, 2007 8:35 pm
by helmut
Please note that XnView 1.92 supports GPL GhostScript. Please consider this when downloading and installing GhostScript.

(I guess the original posts needs an update, now).

Posted: Sat Dec 22, 2007 1:54 pm
by ckit
helmut wrote:Please note that XnView 1.92 support GPL GhostScript. Please consider this when downloading and installing GhostScript.

(I guess the original posts needs an update, now).
No sorry, you're wrong.
Just installed Ghostscript 8.61 and XnView 1.92 can only view page 1 of a PDF, the other pages can't be viewed unless AFPL 8.54 is used.

Posted: Sun Dec 23, 2007 11:03 am
by helmut
ckit wrote:
helmut wrote:Please note that XnView 1.92 support GPL GhostScript. Please consider this when downloading and installing GhostScript.

(I guess the original posts needs an update, now).
No sorry, you're wrong.
Just installed Ghostscript 8.61 and XnView 1.92 can only view page 1 of a PDF, the other pages can't be viewed unless AFPL 8.54 is used.
Thank you for checking. It would be good if Pierre shed some light into this and clearly state which version of Ghostscript should be used.

Posted: Wed Dec 26, 2007 9:01 am
by xnview
ckit wrote:
helmut wrote:Please note that XnView 1.92 support GPL GhostScript. Please consider this when downloading and installing GhostScript.

(I guess the original posts needs an update, now).
No sorry, you're wrong.
Just installed Ghostscript 8.61 and XnView 1.92 can only view page 1 of a PDF, the other pages can't be viewed unless AFPL 8.54 is used.
I can't confirm, i have no problem to view all pages of PDF file with GPL version

Posted: Tue Jan 15, 2008 9:55 am
by Zwan
ckit wrote: No sorry, you're wrong.
Just installed Ghostscript 8.61 and XnView 1.92 can only view page 1 of a PDF, the other pages can't be viewed unless AFPL 8.54 is used.
Had the same problem, resolved it the same way, but then XnView became unstable. Guess I'll have to install it all again. Running under W2k.

Posted: Thu Nov 20, 2008 3:38 pm
by grkn
Hi, it works fine, but Xnview 1.95 doesn't build thumbnails for .AI files, but works fine with .PSD, help? Using Ghostscript 8.61, illustrator not installed.

Re: How to display vector formats like PDF, AI,...? GhostScr

Posted: Thu Dec 09, 2010 3:36 am
by minkowski
I could not see a script to download for Win 7 so I downloaded this:
http://garr.dl.sourceforge.net/project/ ... 900w32.exe

XNView can now display pdf files but only if pdf is one page. Multpage pdf cannot be opened.
You need Acrobat Reader for that.

Re: How to display vector formats like PDF, AI,...? GhostScr

Posted: Thu Dec 09, 2010 8:41 am
by xnview
With Ghostscript installed, XnView can display both single and multipage PDF documents.