Volker Kunert

Results 39 comments of Volker Kunert

Using Branch 1.3 or Branch 1.4 with LayoutProcessor I get a correct visual appearance ![image](https://github.com/LibrePDF/OpenPDF/assets/39316085/25da434c-fcb1-44a6-9839-12328030c50e) and incorrect text export ហ៍¥

@wang0331 , I tested the minimal example: OpenJDK Java 1.8.0 OpenPDF Branch 1.3-Java8 chars: 17a0 17cd 17d2 179c glyphVector = awtFont.layoutGlyphVector(...) glyphVector.getNumGlyphs()=5 glyphs: 68 111 694 165 65535 charIndizes=0 charIndizes=1...

Using OpenJDK Java 1.8.0 OpenPDF Branch 1.3-Java8 with FOP dependency the result is: ![image](https://github.com/LibrePDF/OpenPDF/assets/39316085/e25adf91-7517-4979-b2f3-2c00522ed9dd) I used System.out.println(FopGlyphProcessor.isFopSupported()?"fop is supported":"fop is NOT supported"); to verify that FOP is found. (I had...

@wang0331 , sure here is the example file: [App.java.txt](https://github.com/LibrePDF/OpenPDF/files/15313950/App.java.txt) Running under Linux: /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -cp lib/commons-io-2.16.1.jar:lib/commons-logging-1.3.1.jar:lib/fop-core-2.9.jar:lib/openpdf-1.3.43.jar:lib/xmlgraphics-commons-2.9.jar:target/openpdf-khmer-1.0-SNAPSHOT.jar khmer.App

@wang0331 , I don't see a simple solution for Java 1.8. Possibly you could create the PDF file directly with Apache FOP if you can't use a current Java version.

Using FOP for your examples looks as follows [k.pdf](https://github.com/LibrePDF/OpenPDF/files/15327319/k.pdf) Input and configuration file: [fop.xconf.txt](https://github.com/LibrePDF/OpenPDF/files/15327330/fop.xconf.txt) [k.fo.txt](https://github.com/LibrePDF/OpenPDF/files/15327331/k.fo.txt) fop -c fop.xconf -fo k.fo -pdf k.pdf

See https://github.com/LibrePDF/OpenPDF/wiki/Accents,-DIN-91379,-non-Latin-scripts 2. Step: Provide an OpenType font LayoutProcessor works *only* with OpenType fonts provided as file. It does *not* work with Type1-fonts. This is documented and no bug. However,...

See https://github.com/LibrePDF/OpenPDF/pull/1211

@a-leithner As PdfTemplate extends PdfContentBytePdfTemplate you could call template.setFontAndSize(BaseFont bf, float size) However with https://github.com/LibrePDF/OpenPDF/pull/1211 this exception should not occure any more. But LayoutProcessor does nothing without an OpenType font.