From dd80e3a4d07fe14b7a99d3acc1a3694891be0acb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 9 Aug 2011 15:22:46 +0200 Subject: [PATCH] Adjust for iText's package name change in the scripts We have a number of examples how to access iText from Jython/Beanshell. Let's update them to the new iText version as well. Signed-off-by: Johannes Schindelin --- bin/pdf-concat.py | 4 ++-- bin/pdf-recompress.bsh | 4 ++-- bin/pdf-reverse-pages.bsh | 8 ++++---- bin/pdf-rotate.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/pdf-concat.py b/bin/pdf-concat.py index 09861ac979..4ce5eb14b3 100755 --- a/bin/pdf-concat.py +++ b/bin/pdf-concat.py @@ -1,8 +1,8 @@ #!/bin/sh ''''exec "$(dirname "$0")"/../fiji --jython "$0" "$@" # (call again with fiji)''' -from com.lowagie.text import Document -from com.lowagie.text.pdf import PdfReader, PdfCopy, SimpleBookmark +from com.itextpdf.text import Document +from com.itextpdf.text.pdf import PdfReader, PdfCopy, SimpleBookmark from java.io import FileOutputStream from java.util import ArrayList import sys diff --git a/bin/pdf-recompress.bsh b/bin/pdf-recompress.bsh index 833433ce34..d4d1a53bc0 100755 --- a/bin/pdf-recompress.bsh +++ b/bin/pdf-recompress.bsh @@ -1,8 +1,8 @@ #!/bin/sh // 2>&1 | :; exec "$(dirname "$0")"/../fiji "$0" "$@" # exec with fiji */ -import com.lowagie.text.*; -import com.lowagie.text.pdf.*; +import com.itextpdf.text.*; +import com.itextpdf.text.pdf.*; import java.io.FileOutputStream; if (bsh.args.length != 2) { diff --git a/bin/pdf-reverse-pages.bsh b/bin/pdf-reverse-pages.bsh index db67431b61..23aa19a06e 100755 --- a/bin/pdf-reverse-pages.bsh +++ b/bin/pdf-reverse-pages.bsh @@ -1,11 +1,11 @@ #!/bin/sh // 2>&1 | :; exec "$(dirname "$0")"/../fiji "$0" "$@" # exec with fiji -import com.lowagie.text.Document; +import com.itextpdf.text.Document; -import com.lowagie.text.pdf.PdfReader; -import com.lowagie.text.pdf.PdfCopy; -import com.lowagie.text.pdf.SimpleBookmark; +import com.itextpdf.text.pdf.PdfReader; +import com.itextpdf.text.pdf.PdfCopy; +import com.itextpdf.text.pdf.SimpleBookmark; import java.io.FileOutputStream; diff --git a/bin/pdf-rotate.py b/bin/pdf-rotate.py index 2c1a56c75c..739b04a976 100755 --- a/bin/pdf-rotate.py +++ b/bin/pdf-rotate.py @@ -1,7 +1,7 @@ #!/bin/sh ''''exec "$(dirname "$0")"/../fiji --jython "$0" "$@" # (call again with fiji)''' -from com.lowagie.text.pdf import PdfReader, PdfName, PdfNumber, PdfStamper +from com.itextpdf.text.pdf import PdfReader, PdfName, PdfNumber, PdfStamper from java.io import FileOutputStream import sys