Archive for the 'Windows' Category

Convert PDF to DXF with Free Open Source Software pstoedit and Ghostscript

pstoedit+ghostscript
1.download the last version pstoedit and ghostscript
2.install pstoedit and ghostscript
3 run command pstoedit -f dxf in.pdf out.dxf(make sure pstoedit can find the path of gswin32c.exe)

pstoedit+gsview
1.download the last version pstoedit and gsview
2.install pstoedit and gsview
3. use pstoedit as a plugin of gsview

pstoedit is a tool converting PostScript and PDF files into various other formats suported by different drawing editors. As a prerequesite it needs GhostScript to be installed (binary installation is sufficient).

Currently pstoedit can generate the following major formats:

  • Tgif .obj format (for tgif version >= 3)
  • .fig format for xfig
  • pdf – Adobe’s Portable Document Format
  • gnuplot format
  • Flattened PostScript (with or without Bezier curves)
  • DXF – CAD exchange format
  • LWO – LightWave 3D
  • RIB – RenderMan
  • RPL – Real3D
  • Java 1 or Java 2 applet
  • Idraw format (in fact a special form of EPS that idraw can read)
  • Tcl/Tk
  • HPGL
  • AI (Adobe Illustrator) (based on ps2ai.ps – not a real
    pstoedit driver – see notes below and manual)
  • Windows Meta Files (WMF) (Windows  only)
  • Enhanced Windows Meta Files (EMF) (Windows, but also Linux/Unix if
    libemf is available)
  • OS/2 meta files (OS/2 only)
  • PIC format for troff/groff
  • MetaPost format for usage with TeX/LaTeX
  • LaTeX2e picture
  • Kontour
  • GNU Metafile (plotutils / libplot)
  • Skencil ( http://www.skencil.org)
  • Mathematica
  • via ImageMagick to any format supported by ImageMagick
  • SWF
  • CNC G code
  • VTK files for ParaView and similar visualization tools

From above cheat, we know pstoedit supports generate DXF, but it needs the help of Ghostscript or GsView

Ghostscript is the name of a set of software that provides:
* An interpreter for the PostScript (TM) language and the Adobe Portable Document Format (PDF — sometimes confused with Acrobat, Adobe’s PDF browser/editor product), and
* A set of C procedures (the Ghostscript library) that implement the graphics and filtering (data compression / decompression / conversion) capabilities that appear as primitive operations in the PostScript language and in PDF.

reference,
GPL Ghostscript
GSview
pstoedit

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

Jbig2.exe fix a bug and release new update

After the first release, I found a bug of jbig2.exe,
when I tried
jbig2.exe -p 1.tiff>1.jbig2
I found the created jbig2 file under Windows is bigger than under Linux, and after check, it is not correct jbig2 file.
After some efforts(sorry for my poor c/c++ and python), I fixed the bug.

P.S.
Change logs of this release

*pdf.py create correct PDF to stdout under windows
for details, please visit How to Let Python Send Binary data to stdout under Windows
*fix a bug, that jbig2.exe -p can not get the correct content, also stdout issue.

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

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