summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac50510)
raw | patch | inline | side by side (parent: ac50510)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 14 Jun 2008 04:37:47 +0000 (04:37 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 14 Jun 2008 04:37:47 +0000 (04:37 +0000) |
share/extensions/Makefile.am | patch | blob | history | |
share/extensions/pdf_output.inx.txt | [deleted file] | patch | blob | history |
share/extensions/pdf_output_via_gs_on_win32.inx.txt | [deleted file] | patch | blob | history |
share/extensions/ps2pdf.cmd | [deleted file] | patch | blob | history |
share/extensions/ps2pdf.sh | [deleted file] | patch | blob | history |
index 909327cc9f4c6c7c0eedbcd49bbc337f27854332..92a52847cf32ed4d84df65084a4bcbc4ea7f9f4b 100644 (file)
polyhedron_3d.py \
ps2dxf.sh \
ps2epsi.sh \
- ps2pdf.cmd \
- ps2pdf.sh \
ps2pdf-ext.py \
pturtle.py \
radiusrand.py \
outline2svg.inx \
pathalongpath.inx\
pathscatter.inx\
- pdf_output.inx.txt \
- pdf_output_via_gs_on_win32.inx.txt \
perfectboundcover.inx \
perspective.inx \
polyhedron_3d.inx \
diff --git a/share/extensions/pdf_output.inx.txt b/share/extensions/pdf_output.inx.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-<inkscape-extension>
- <_name>PDF Output</_name>
- <id>org.inkscape.output.pdf.via_gs</id>
- <dependency type="extension">org.inkscape.output.ps</dependency>
- <dependency type="executable" location="extensions">ps2pdf.sh</dependency>
- <dependency type="executable">ps2pdf</dependency>
- <output>
- <extension>.pdf</extension>
- <mimetype>image/x-portable-document-format</mimetype>
- <_filetypename>Adobe PDF via postscript (*.pdf)</_filetypename>
- <_filetypetooltip>Adobe Portable Document Format</_filetypetooltip>
- </output>
- <script>
- <command reldir="extensions">ps2pdf.sh</command>
- <helper_extension>org.inkscape.output.ps</helper_extension>
- </script>
-</inkscape-extension>
diff --git a/share/extensions/pdf_output_via_gs_on_win32.inx.txt b/share/extensions/pdf_output_via_gs_on_win32.inx.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-<!--
-This requires ghostscript in order to work, but there isn't yet
-a suitable way to test for ghostscript's presence.
-
-TODO: add this file and ps2pdf.cmd to the makefile once this is fixed so
-that they get into the tarball
--->
-<inkscape-extension>
- <_name>PDF Output</_name>
- <id>org.inkscape.output.pdf.via_gs_on_win32</id>
- <dependency type="extension">org.inkscape.output.ps</dependency>
- <dependency type="executable" location="extensions">ps2pdf.cmd</dependency>
- <dependency type="executable" location="path">cmd.exe</dependency>
- <output>
- <extension>.pdf</extension>
- <mimetype>image/x-portable-document-format</mimetype>
- <_filetypename>Adobe PDF via postscript (*.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>
diff --git a/share/extensions/ps2pdf.cmd b/share/extensions/ps2pdf.cmd
+++ /dev/null
@@ -1,10 +0,0 @@
-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%
-echo %PATH%
-ps2pdf.bat %1 -
-REM END
\ No newline at end of file
diff --git a/share/extensions/ps2pdf.sh b/share/extensions/ps2pdf.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-params=`grep "^%%DocumentMedia:" "$1" | head -n 1 | awk '{ if (NF==7) { if ($2!="plain") print "-sPAPERSIZE=" $2; else print "-dDEVICEWIDTHPOINTS=" $3 " -dDEVICEHEIGHTPOINTS=" $4; } }'`
-
-if [ "x${params}x" = "xx" ]
-then
- params=`grep "^%%BoundingBox:" "$1" | head -n 1 | awk '{ print "-dDEVICEWIDTHPOINTS=" $4 " -dDEVICEHEIGHTPOINTS=" $5; }'`
-fi
-
-exec ps2pdf $params "$1" - 2> /dev/null