Skip to content

Commit

Permalink
Adjust for iText's package name change in the scripts
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 9, 2011
1 parent 44599fe commit dd80e3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/pdf-concat.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions bin/pdf-recompress.bsh
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions bin/pdf-reverse-pages.bsh
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion bin/pdf-rotate.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit dd80e3a

Please sign in to comment.