Difference between revisions of "Output format requirements"

From Inkscape Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
= Tips for getting Extensions to work =
{{Template:MovedToOtherSite|topic=Extension development|new_url=https://inkscape.gitlab.io/extensions/documentation/|new_site=GitLab}}
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|Getting Effects Working]].


=== 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
    @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


REM BEGIN
    <inkscape-extension>
@echo off
        <name>PDF Output</name>
REM edit %GSDIR% to match the ghostscript installation directory
        <id>org.inkscape.output.pdf</id>
set GSDIR=%PROGRAMFILES%\gs\gs8.51\
        <dependency type="extension">org.inkscape.output.ps</dependency>
set GSBINDIR=%GSDIR%bin
        <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
set GSLIBDIR=%GSDIR%lib
    <!--<dependency type="executable">ps2pdf</dependency>-->
set PATH=%GSBINDIR%;%GSLIBDIR%;%PATH%
        <output>
ps2pdf.bat %1 -
            <extension>.pdf</extension>
REM END
            <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>


- edit pdf_output.inx
=== Save *.XCF ===


<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>
<!--<dependency type="executable">ps2pdf</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>
</pre>


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

Latest revision as of 19:57, 3 February 2023

The Inkscape Wiki is no longer used to host information about Extension development.

You can now find related information at GitLab.

This page is kept for historical reasons, e.g. to document specific decisions in Inkscape development.


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 Getting Effects Working.

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

??