From edb4686ebebc8601740a4b04b06ba2c2edcc9474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 18 Feb 2021 22:12:42 +0100 Subject: [PATCH] gnujpdf: - adding custom ttf font - print transparent text - set raw transformation matrix --- libsrc/gnujpdf/nbproject/build-impl.xml | 749 +++++++++++++----- libsrc/gnujpdf/nbproject/genfiles.properties | 6 +- libsrc/gnujpdf/nbproject/project.properties | 12 + libsrc/gnujpdf/src/gnu/jpdf/PDFDocument.java | 92 ++- .../gnujpdf/src/gnu/jpdf/PDFEmbeddedFont.java | 78 ++ .../src/gnu/jpdf/PDFFontDescriptor.java | 48 ++ libsrc/gnujpdf/src/gnu/jpdf/PDFGraphics.java | 2 +- libsrc/gnujpdf/src/gnu/jpdf/PDFImage.java | 14 +- libsrc/gnujpdf/src/gnu/jpdf/PDFOutline.java | 8 +- libsrc/gnujpdf/src/gnu/jpdf/PDFPage.java | 25 + libsrc/gnujpdf/src/gnu/jpdf/TtfParser.java | 278 +++++++ 11 files changed, 1103 insertions(+), 209 deletions(-) create mode 100644 libsrc/gnujpdf/src/gnu/jpdf/PDFEmbeddedFont.java create mode 100644 libsrc/gnujpdf/src/gnu/jpdf/PDFFontDescriptor.java create mode 100644 libsrc/gnujpdf/src/gnu/jpdf/TtfParser.java diff --git a/libsrc/gnujpdf/nbproject/build-impl.xml b/libsrc/gnujpdf/nbproject/build-impl.xml index 33af81dd9..1de20bda2 100644 --- a/libsrc/gnujpdf/nbproject/build-impl.xml +++ b/libsrc/gnujpdf/nbproject/build-impl.xml @@ -19,7 +19,7 @@ is divided into following sections: - cleanup --> - + @@ -46,14 +46,79 @@ is divided into following sections: - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -76,7 +141,9 @@ is divided into following sections: - + + + @@ -87,15 +154,6 @@ is divided into following sections: - - - - - - - - - @@ -156,6 +214,7 @@ is divided into following sections: + @@ -191,7 +250,12 @@ is divided into following sections: - + + + + + + @@ -217,6 +281,7 @@ is divided into following sections: + @@ -243,11 +308,80 @@ is divided into following sections: - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -284,11 +418,13 @@ is divided into following sections: - + + + @@ -317,7 +453,7 @@ is divided into following sections: - + @@ -372,30 +508,59 @@ is divided into following sections: - - + + - - - + - + + + + + + + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -403,25 +568,36 @@ is divided into following sections: - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -449,6 +625,10 @@ is divided into following sections: + + + + @@ -503,10 +683,6 @@ is divided into following sections: - - - - @@ -514,74 +690,20 @@ is divided into following sections: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - + + + + + + @@ -600,14 +722,14 @@ is divided into following sections: - + - + @@ -634,14 +756,10 @@ is divided into following sections: - - - - - + - + @@ -693,7 +811,7 @@ is divided into following sections: - + @@ -721,10 +839,14 @@ is divided into following sections: + + + + @@ -743,18 +865,6 @@ is divided into following sections: - - - - - - - - - - - - @@ -764,38 +874,98 @@ is divided into following sections: + + - + - - - - - - - - - - - - - - - - - + + + + + + - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -813,6 +983,7 @@ is divided into following sections: + @@ -834,7 +1005,7 @@ is divided into following sections: - + @@ -846,7 +1017,7 @@ is divided into following sections: - + @@ -902,7 +1073,9 @@ is divided into following sections: - + + + @@ -943,7 +1116,7 @@ is divided into following sections: Must select some files in the IDE or set javac.includes - + @@ -963,21 +1136,40 @@ is divided into following sections: + + + + + + + + + + + + + + + + + + + - + - + - + @@ -985,25 +1177,65 @@ is divided into following sections: - + - + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}" - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + @@ -1022,8 +1254,73 @@ is divided into following sections: - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + @@ -1261,10 +1613,14 @@ is divided into following sections: - + Must select some files in the IDE or set javac.includes - + + + + + @@ -1282,7 +1638,7 @@ is divided into following sections: - + @@ -1294,14 +1650,14 @@ is divided into following sections: - + Must select some files in the IDE or set test.includes Some tests failed; see details above. - + Must select some files in the IDE or set test.class Must select some method in the IDE or set test.method @@ -1310,7 +1666,7 @@ is divided into following sections: Some tests failed; see details above. - +