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

Kodi keeps crashing when it is started without connected displays. Sometimes I want to startup my kodi setup for some other reasen and start using kodi later.... then kodi was already closed with some crash log file... :( This script works arround by waiting to start kodi until some hdmi port is connected (modify the grep query to adapt to some other port name). #!/bin/bash # Some programs have issues when run without connected display. E.g. Kodi likes to crash when started without any display connected on my system. # This script starts after some hdmi port is connected. # Depends on xrandr. WARNINGTIMEOUTINSECONDS=840 TIMEOUTINSECONDS=900 POLLINGDURATIONINSECONDS=5 LOGFILE= " $HOME /waitTillHdmiConnected.log" #set start conditions SECONDS=0 triggerTimeoutActions (){      echo   ...

Skript kiddies und SSH

Anzahl an fehlerhaften Logins ausgeben: cat /var/logauth.log | grep invalid | wc -l Für einen Server, der in halbes Jahr im Netz läuft finde ich 68350 Versuche. Ein Auszug von /var/logauth.log Jun 3 00:12:02 uhweb69144 sshd[11470]: Invalid user hilary from 201.147.235.91 Jun 3 00:12:02 uhweb69144 sshd[11470]: reverse mapping checking getaddrinfo for static.customer-201-147-235-91.uninet-ide.com.mx failed - POSSIBLE BREAK-IN ATTEMPT! Jun 3 00:12:02 uhweb69144 sshd[11470]: (pam_unix) check pass; user unknown Jun 3 00:12:02 uhweb69144 sshd[11470]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost= 201.147.235.91 Jun 3 00:12:04 uhweb69144 sshd[11470]: Failed password for invalid user hilary from 201.147.235.91 port 49507 ssh2 Jun 3 00:12:09 uhweb69144 sshd[11530]: Invalid user howard from 201.147.235.91 Jun 3 00:12:09 uhweb69144 sshd[11530]: reverse mapping checking getaddrinfo for static.customer-201-147-235-91.uninet-ide.com.mx failed - POSS...

favourite geek&poke comics

http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013485e5e37b970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486458e35970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f32a0f25970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f3716c17970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486997ef7970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013487146609970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f4227ee4970b-pi