Difference between revisions of "Output format requirements"

From Inkscape Wiki
Jump to navigation Jump to search
(Reformated)
Line 1: Line 1:
[[Image:Example.jpg]]= Tips for getting Extensions to work =
Inkscape's extensions allow for importing and exporting non-SVG file types and direct editing of the current SVG document. For more information about the Extensions that appear in the Effects menu read [[GettingEffectsWorking]].
Inkscape's extensions allow for importing and exporting non-SVG file types and direct editing of the current SVG document. For more information about the Extensions that appear in the Effects menu read [[GettingEffectsWorking]].


=== Open *.TXT ===
=== Open *.TXT ===
- install perl
* install perl
- install SVG perl module
* install SVG perl module


=== Open *.AI ===
=== Open *.AI ===
- install perl and optionally Image::Magick
* install perl and optionally Image::Magick
- Only handles Illustrator versions prior to version 9 (version 9 onwards stores files as PDF according to https://createpdf.adobe.com/cgi-feeder.pl/formats?BP=&LOC=en_US)
* Only handles Illustrator versions prior to version 9 (version 9 onwards stores files as PDF according to https://createpdf.adobe.com/cgi-feeder.pl/formats?BP=&LOC=en_US)


=== Save *.AI ===
=== Save *.AI ===
- requires pstoedit with the ps2ai filter
* requires pstoedit with the ps2ai filter
- uses Inkscapes internal ps output extension
* uses Inkscapes internal ps output extension


=== Open *.PS ===
=== Open *.PS ===
- requires skconvert python script from sketch =>> install sketch
* requires skconvert python script from sketch =>> install sketch


=== Open *.WMF ===
=== Open *.WMF ===
- requires wmf2svg, part of libwmf (http://wvware.sourceforge.net/libwmf.html)
* requires wmf2svg, part of libwmf (http://wvware.sourceforge.net/libwmf.html)


=== Save *.PDF (Win32) ===
=== Save *.PDF (Win32) ===
<pre>
* install [[GhostScript]] http://www.cs.wisc.edu/~ghost/doc/AFPL/get851.htm
- install [[GhostScript]] http://www.cs.wisc.edu/~ghost/doc/AFPL/get851.htm
* create ps2pdf.cmd in %instdir%/share/extensions/
- create ps2pdf.cmd in %instdir%/share/extensions/


REM BEGIN
    REM BEGIN
@echo off
    @echo off
REM edit %GSDIR% to match the ghostscript installation directory
    REM edit %GSDIR% to match the ghostscript installation directory
set GSDIR=%PROGRAMFILES%\gs\gs8.51\
    set GSDIR=%PROGRAMFILES%\gs\gs8.51\
set GSBINDIR=%GSDIR%bin
    set GSBINDIR=%GSDIR%bin
set GSLIBDIR=%GSDIR%lib
    set GSLIBDIR=%GSDIR%lib
set PATH=%GSBINDIR%;%GSLIBDIR%;%PATH%
    set PATH=%GSBINDIR%;%GSLIBDIR%;%PATH%
ps2pdf.bat %1 -
    ps2pdf.bat %1 -
REM END
    REM END


- edit pdf_output.inx
* edit pdf_output.inx


<inkscape-extension>
    <inkscape-extension>
    <name>PDF Output</name>
        <name>PDF Output</name>
    <id>org.inkscape.output.pdf</id>
        <id>org.inkscape.output.pdf</id>
    <dependency type="extension">org.inkscape.output.ps</dependency>
        <dependency type="extension">org.inkscape.output.ps</dependency>
    <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
        <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
<!--<dependency type="executable">ps2pdf</dependency>-->
    <!--<dependency type="executable">ps2pdf</dependency>-->
    <output>
        <output>
        <extension>.pdf</extension>
            <extension>.pdf</extension>
        <mimetype>image/x-portable-document-format</mimetype>
            <mimetype>image/x-portable-document-format</mimetype>
        <filetypename>Adobe PDF (*.pdf)</filetypename>
            <filetypename>Adobe PDF (*.pdf)</filetypename>
        <filetypetooltip>Adobe Portable Document Format</filetypetooltip>
            <filetypetooltip>Adobe Portable Document Format</filetypetooltip>
    </output>
        </output>
    <script>
        <script>
        <command reldir="extensions">ps2pdf.cmd</command>
            <command reldir="extensions">ps2pdf.cmd</command>
        <helper_extension>org.inkscape.output.ps</helper_extension>
            <helper_extension>org.inkscape.output.ps</helper_extension>
    </script>
        </script>
</inkscape-extension>
    </inkscape-extension>
</pre>


=== Save *.XCF ===
=== Save *.XCF ===
??


[[Category:Extensions]]
[[Category:Extensions]]

Revision as of 19:32, 19 February 2008

Inkscape's extensions allow for importing and exporting non-SVG file types and direct editing of the current SVG document. For more information about the Extensions that appear in the Effects menu read GettingEffectsWorking.

Open *.TXT

  • install perl
  • install SVG perl module

Open *.AI

Save *.AI

  • requires pstoedit with the ps2ai filter
  • uses Inkscapes internal ps output extension

Open *.PS

  • requires skconvert python script from sketch =>> install sketch

Open *.WMF

Save *.PDF (Win32)

   REM BEGIN
   @echo off
   REM edit %GSDIR% to match the ghostscript installation directory
   set GSDIR=%PROGRAMFILES%\gs\gs8.51\
   set GSBINDIR=%GSDIR%bin
   set GSLIBDIR=%GSDIR%lib
   set PATH=%GSBINDIR%;%GSLIBDIR%;%PATH%
   ps2pdf.bat %1 -
   REM END
  • edit pdf_output.inx
   <inkscape-extension>
       <name>PDF Output</name>
       <id>org.inkscape.output.pdf</id>
       <dependency type="extension">org.inkscape.output.ps</dependency>
       <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
       <output>
           <extension>.pdf</extension>
           <mimetype>image/x-portable-document-format</mimetype>
           <filetypename>Adobe PDF (*.pdf)</filetypename>
           <filetypetooltip>Adobe Portable Document Format</filetypetooltip>
       </output>
       <script>
           <command reldir="extensions">ps2pdf.cmd</command>
           <helper_extension>org.inkscape.output.ps</helper_extension>
       </script>
   </inkscape-extension>

Save *.XCF

??