Direkt zum Hauptbereich

pdf to dxf

if you get a cad plan in pdf format you have a problem: Pdf can not be loaded in most cad programs.
I used pstoedit to solve this problem. Pstoedit is a free tool to convert pdfs to dxf.
What you have to do:
  1. Install pstoedit
  2. Install ghostscript
  3. shot at your pdfs: pstoedit.exe <pdfSource> <dxfOutput> -f dxf
thanks to the author of pstoedit!

Here is the pstoedit.exe -help output:

No output format specified (-f option) and format could not be uniquely deduced from suffix .dxf of output file
Available formats :
    psf:            .fps:    Flattened PostScript (no curves)     (built-in)
-------------------------------------------
    ps:            .spsc:    Simplified PostScript with curves     (built-in)
-------------------------------------------
    debug:            .dbg:    for test purposes     (built-in)
-------------------------------------------
    dump:            .dbg:    for test purposes (same as debug)     (built-in)
-------------------------------------------
    gs:            .gs:    any device that GhostScript provides - use gs:format, e.g. gs:pdfwrite     (built-in)
-------------------------------------------
    ps2ai:            .ai:    Adobe Illustrator via ps2ai.ps of GhostScript     (built-in)
-------------------------------------------
    gmfa:            .meta:    ASCII GNU metafile      (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    gmfb:            .meta:    binary GNU metafile      (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot:            .plot:    GNU libplot output types, e.g. plot:type X     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-cgm:        .cgm:    cgm  via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-ai:        .ai:    ai   via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-svg:        .svg:    svg  via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-ps:        .ps:    ps   via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-fig:        .fig:    fig  via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-pcl:        .pcl:    pcl  via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-hpgl:        .hpgl:    hpgl via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    plot-tek:        .tek:    tek  via GNU libplot     (C:\Program Files\pstoedit\drvlplot.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[          plotformat     : string     : plotutil format to generate]
-------------------------------------------
    swf:            .swf:    SWF driver:      (C:\Program Files\pstoedit\drvswf.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[              -cubic     : boolean     : cubic ???]
[              -trace     : boolean     : trace ???]
-------------------------------------------
    hpgl:            .hpgl:    HPGL code     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -penplotter     : boolean     : plotter is pen plotter (i.e. no support for specific line widths)]
[  -pencolorsfromfile     : boolean     : read pen colors from file drvhpgl.pencolors in pstoedit data directory]
[          -pencolors     : integer     : maximum number of pen colors to be used by pstoedit (default 0) - ]
[           -filltype     : string     : select fill type e.g. FT 1]
[              -hpgl2     : boolean     : Use HPGL/2 instead of HPGL/1]
[              -rot90     : boolean     : rotate hpgl by 90 degrees]
[             -rot180     : boolean     : rotate hpgl by 180 degrees]
[             -rot270     : boolean     : rotate hpgl by 270 degrees]
-------------------------------------------
    pcl:            .pcl:    PCL code     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -penplotter     : boolean     : plotter is pen plotter (i.e. no support for specific line widths)]
[  -pencolorsfromfile     : boolean     : read pen colors from file drvhpgl.pencolors in pstoedit data directory]
[          -pencolors     : integer     : maximum number of pen colors to be used by pstoedit (default 0) - ]
[           -filltype     : string     : select fill type e.g. FT 1]
[              -hpgl2     : boolean     : Use HPGL/2 instead of HPGL/1]
[              -rot90     : boolean     : rotate hpgl by 90 degrees]
[             -rot180     : boolean     : rotate hpgl by 180 degrees]
[             -rot270     : boolean     : rotate hpgl by 270 degrees]
-------------------------------------------
    pic:            .pic:    PIC format for troff et.al.     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[              -troff     : boolean     : troff mode (default is groff)]
[          -landscape     : boolean     : landscape output]
[           -portrait     : boolean     : portrait output]
[           -keepfont     : boolean     : print unrecognized literally]
[               -text     : boolean     : try not to make pictures from running text]
[              -debug     : boolean     : enable debug output]
-------------------------------------------
    asy:            .asy:    Asymptote Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    cairo:            .c:    cairo driver     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[              -pango     : boolean     : use pango for font rendering]
[           -funcname     : string     : sets the base name for the generated functions and variables.  e.g. myfig]
[             -header     : string     : sets the output file name for the generated C header file.  e.g. myfig.h]
-------------------------------------------
    cfdg:            .cfdg:    Context Free Design Grammar     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    dxf:            .dxf:    CAD exchange format     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[        -polyaslines     : boolean     : use LINE instead of POLYLINE in DXF]
[                 -mm     : boolean     : use mm coordinates instead of points in DXF (mm=pt/72*25.4)]
[                -ctl     : boolean     : map colors to layers]
[   -splineaspolyline     : boolean     : approximate splines with PolyLines (only for -f dxf_s)]
[       -splineasnurb     : boolean     : experimental (only for -f dxf_s)]
[    -splineasbspline     : boolean     : experimental (only for -f dxf_s)]
[-splineassinglespline     : boolean     : experimental (only for -f dxf_s)]
[-splineasmultispline     : boolean     : experimental (only for -f dxf_s)]
[     -splineasbezier     : boolean     : use Bezier splines in DXF format (only for -f dxf_s)]
[    -splineprecision     : integer     : number of samples to take from spline curve when doing approximation with -splineaspolyline or -splineasmultispline - should be >=2 (default 5)]
[     -dumplayernames     : boolean     : dump all layer names found to standard output]
[             -layers     : string     : layers to be shown (comma separated list of layer names, no space)]
[        -layerfilter     : string     : layers to be hidden (comma separated list of layer names, no space)]
-------------------------------------------
    dxf_s:            .dxf:    CAD exchange format with splines     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[        -polyaslines     : boolean     : use LINE instead of POLYLINE in DXF]
[                 -mm     : boolean     : use mm coordinates instead of points in DXF (mm=pt/72*25.4)]
[                -ctl     : boolean     : map colors to layers]
[   -splineaspolyline     : boolean     : approximate splines with PolyLines (only for -f dxf_s)]
[       -splineasnurb     : boolean     : experimental (only for -f dxf_s)]
[    -splineasbspline     : boolean     : experimental (only for -f dxf_s)]
[-splineassinglespline     : boolean     : experimental (only for -f dxf_s)]
[-splineasmultispline     : boolean     : experimental (only for -f dxf_s)]
[     -splineasbezier     : boolean     : use Bezier splines in DXF format (only for -f dxf_s)]
[    -splineprecision     : integer     : number of samples to take from spline curve when doing approximation with -splineaspolyline or -splineasmultispline - should be >=2 (default 5)]
[     -dumplayernames     : boolean     : dump all layer names found to standard output]
[             -layers     : string     : layers to be shown (comma separated list of layer names, no space)]
[        -layerfilter     : string     : layers to be hidden (comma separated list of layer names, no space)]
-------------------------------------------
    fig:            .fig:    .fig format for xfig     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -startdepth     : integer     : Set the initial depth (default 999)]
[             -metric     : boolean     : Switch to centimeter display (default inches)]
[ -usecorrectfontsize     : boolean     : don't scale fonts for xfig. Use this if you also use this option with xfig]
[              -depth     : integer     : Set the page depth in inches (default 11)]
-------------------------------------------
    xfig:            .fig:    .fig format for xfig     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -startdepth     : integer     : Set the initial depth (default 999)]
[             -metric     : boolean     : Switch to centimeter display (default inches)]
[ -usecorrectfontsize     : boolean     : don't scale fonts for xfig. Use this if you also use this option with xfig]
[              -depth     : integer     : Set the page depth in inches (default 11)]
-------------------------------------------
    tfig:            .fig:    .fig format for xfig     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -startdepth     : integer     : Set the initial depth (default 999)]
[             -metric     : boolean     : Switch to centimeter display (default inches)]
[ -usecorrectfontsize     : boolean     : don't scale fonts for xfig. Use this if you also use this option with xfig]
[              -depth     : integer     : Set the page depth in inches (default 11)]
-------------------------------------------
    gcode:            .gcode:    emc2 gcode format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    gnuplot:        .gnuplot:    gnuplot format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    gschem:            .gschem:    gschem format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    idraw:            .idraw:    Interviews draw format (EPS)     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    java1:            .java:    java 1 applet source code     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[     java class name     : string     : name of java class to generate]
-------------------------------------------
    java2:            .java2:    java 2 source code     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[     java class name     : string     : name of java class to generate]
-------------------------------------------
    kil:            .kil:    .kil format for Kontour     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    latex2e:        .tex:    LaTeX2e picture format     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[           -integers     : boolean     : round all coordinates to the nearest integer]
-------------------------------------------
    lwo:            .lwo:    LightWave 3D Object Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    mma:            .m:    Mathematica Graphics     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[        -eofillfills     : boolean     : Filling is used for eofill (default is not to fill)]
-------------------------------------------
    mpost:            .mp:    MetaPost Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    noixml:            .xml:    Nemetschek NOI XML format     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                  -r     : string     : Allplan resource file]
[                -bsl     : integer     : Bezier Split Level (default 3)]
-------------------------------------------
    pcbi:            .dat:    engrave data - insulate/PCB format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    pcb:            .pcb:    pcb format     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[               -grid     : double     : attempt to snap relevant output to grid (mils) and put failed objects to a different layer]
[           -snapdist     : double     : grid snap distance ratio (0 < snapdist <= 0.5, default 0.1)]
[            -tshiftx     : double     : additional x shift measured in target units (mils)]
[            -tshifty     : double     : additional y shift measured in target units (mils)]
[               -grid     : double     : attempt to snap relevant output to grid (mils) and put failed objects to a different layer]
[                 -mm     : boolean     : Switch to metric units (mm)]
[           -stdnames     : boolean     : use standard layer names instead of descriptive names]
[          -forcepoly     : boolean     : force all objects to be interpreted as polygons]
-------------------------------------------
    pcbfill:        .pcbfill:    pcb format with fills     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    pdf:            .pdf:    Adobe's Portable Document Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    rib:            .rib:    RenderMan Interface Bytestream     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    rpl:            .rpl:    Real3D Programming Language Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    sample:            .sam:    sample driver: if you don't want to see this, uncomment the corresponding line in makefile and make again     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[       -sampleoption     : integer     : just an example]
-------------------------------------------
    sk:            .sk:    Sketch Format     (C:\Program Files\pstoedit\stddrivers.dll)
-------------------------------------------
    svm:            .svm:    StarView/OpenOffice.org metafile     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                  -m     : boolean     : map to Arial]
[                 -nf     : boolean     : emulate narrow fonts]
-------------------------------------------
    text:            .txt:    text in different forms      (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[             -height     : integer     : page height in terms of characters]
[              -width     : integer     : page width in terms of characters]
[               -dump     : boolean     : dump text pieces]
-------------------------------------------
    tgif:            .obj:    Tgif .obj format     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                 -ta     : boolean     : text as attribute]
-------------------------------------------
    tk:            .tk:    tk and/or tk applet source code     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                  -R     : boolean     : swap HW]
[                  -I     : boolean     : no impress]
[                  -n     : string     : tagnames]
-------------------------------------------
    vtk:            .vtk:    VTK driver: if you don't want to see this, uncomment the corresponding line in makefile and make again     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[         -VTKeoption     : integer     : just an example]
-------------------------------------------
    wmf:            .wmf:    Windows metafile     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                  -m     : boolean     : map to Arial]
[                 -nf     : boolean     : emulate narrow fonts]
[             -drawbb     : boolean     : draw bounding box]
[                  -p     : boolean     : prune line ends]
[                -nfw     : boolean     : not for Windows (meaningful under *nix only)]
[              -winbb     : boolean     : let the Windows API calculate the Bounding Box (Windows only)]
[                 -OO     : boolean     : generate OpenOffice compatible EMF file]
-------------------------------------------
    emf:            .emf:    Enhanced Windows metafile     (C:\Program Files\pstoedit\stddrivers.dll)
This driver supports the following additional options: (specify using -f "format:-option1 -option2")
[                  -m     : boolean     : map to Arial]
[                 -nf     : boolean     : emulate narrow fonts]
[             -drawbb     : boolean     : draw bounding box]
[                  -p     : boolean     : prune line ends]
[                -nfw     : boolean     : not for Windows (meaningful under *nix only)]
[              -winbb     : boolean     : let the Windows API calculate the Bounding Box (Windows only)]
[                 -OO     : boolean     : generate OpenOffice compatible EMF file]
-------------------------------------------

Kommentare

Beliebte Posts aus diesem Blog

Open DRM-Free Unencrypted DVB-T2 Tv and Radio in Austria

Most things in Austria terestical TV got encrypted since DVB-T got shut down, but there are still three TV channels and three Radio Channels unencrypted. I had some hard time to find out how to get it working using linux... and non existing documentation of the sender did not help. Howerver... if you have use for detailed channel setup arround vienna, take a look: Tvheadend seems to lack channel search support using DVB-T2, but puzzeling every value together works fine: Mux A-WNB Channel Frequency: 498000000 Bandwitdh: 8MHz Constellation; QAM/16 Mux B2 Channel Frequency: 578000000 Bandwitdh: 8MHz Constellation; QAM/16 Unstable Twin Tuner I am using some twin tuner. That was not supported on older kernel version, but is now supported on current versions. Great? nope. The system/tvheadend gets unstable if two tuner are enabled running for weeks. After disabling one tuner, tvheadend runs reliable for months. List of unencrypted streams Example stream info tv channel   Surround sound Too

Cleanup your windows machine

still working: Use these lines to get your windows system cleaned up a bit and free your disk from old temporary and backup files: RD %temp%\ /S /Q rd /s /q C:\Windows\ServiceProfiles\NetworkService\AppData\Local\VSEQT\QTController rd %windir%\temp\ /s /q rd C:\TEMP\ /s /q rd C:\Quarantine /s /q rd "%userprofile%\AppData\Local\Temp\"  /s /q del C:\Windows\Installer\.tmp RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v3.0\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v3.5\Temporary ASP.NET Files\" RD /S /Q "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\" RD /S /Q "%userprofile%\AppData\Local\Microso