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

Frequently Asked Questions regarding XnView (including Answers)

Moderators: Olivier_G, Dreamer, XnTriq, helmut, xnview

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

Postby helmut » Mon Nov 01, 2004 9:56 pm

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
Last edited by helmut on Fri Dec 21, 2007 8:34 pm, edited 10 times in total.
User avatar
helmut
 
Posts: 6233
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Problems

Postby asd » Tue Jan 24, 2006 11:38 am

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
asd
 

Re: Problems

Postby xnview » Tue Jan 24, 2006 2:45 pm

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
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 23514
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Problems

Postby asd » Wed Jan 25, 2006 2:10 pm

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
asd
 

Re: Problems

Postby helmut » Wed Jan 25, 2006 7:55 pm

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".
User avatar
helmut
 
Posts: 6233
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Postby helmut » Tue Aug 14, 2007 6:10 am

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"
User avatar
helmut
 
Posts: 6233
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Postby ckit » Tue Aug 14, 2007 6:13 am

AFPL GhostScript has been discontinued in favour of GPL Ghostscript.
but I have to admit AFPL GS 8.54 works flawlessly with XnView.
ckit
XnThusiast
 
Posts: 2379
Joined: Tue Feb 17, 2004 1:11 am
Location: Australia

Postby helmut » Fri Dec 21, 2007 8:35 pm

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).
Last edited by helmut on Wed Dec 24, 2008 10:44 am, edited 1 time in total.
User avatar
helmut
 
Posts: 6233
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Postby ckit » Sat Dec 22, 2007 1:54 pm

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.
ckit
XnThusiast
 
Posts: 2379
Joined: Tue Feb 17, 2004 1:11 am
Location: Australia

Postby helmut » Sun Dec 23, 2007 11:03 am

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.
User avatar
helmut
 
Posts: 6233
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Postby xnview » Wed Dec 26, 2007 9:01 am

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
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 23514
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Postby Zwan » Tue Jan 15, 2008 9:55 am

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.
Zwan
 
Posts: 1
Joined: Tue Jan 15, 2008 9:42 am

Postby grkn » Thu Nov 20, 2008 3:38 pm

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.
grkn
 
Posts: 5
Joined: Fri Jun 24, 2005 6:33 pm

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

Postby minkowski » Thu Dec 09, 2010 3:36 am

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.
minkowski
 
Posts: 29
Joined: Tue Dec 07, 2010 8:38 am

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

Postby xnview » Thu Dec 09, 2010 8:41 am

With Ghostscript installed, XnView can display both single and multipage PDF documents.
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 23514
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Next

Return to XnView - FAQ

Who is online

Users browsing this forum: No registered users and 0 guests