Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5ebcf4f
GlyphLayoutManager for correct glyph layout
Mar 23, 2026
d7613a3
Merge remote-tracking branch 'origin/OpenPdf-master' into OpenPdf-master
Mar 23, 2026
084fb5f
Corrections
Mar 23, 2026
325d32f
Corrections
Mar 23, 2026
40e9724
Corrections
Mar 24, 2026
e9eff13
Corrections
Mar 24, 2026
caad079
Corrections
Mar 24, 2026
4947398
Corrections
Mar 24, 2026
4f3e7de
Corrections
Mar 24, 2026
781241b
Corrections
Mar 24, 2026
d42adec
Corrections
Mar 25, 2026
e00668f
Corrections
Mar 25, 2026
ec6c497
Exception handling, formatting
vk-github18 Mar 25, 2026
be63eb1
Corrections
Mar 25, 2026
37137e2
Changed exception handling for Bidi mixed
vk-github18 Mar 25, 2026
c6b607c
Corrections: reorder modifiers
Mar 25, 2026
9006ca5
Re-trigger Codacy
Mar 26, 2026
af7fd04
Exception handling, examples
Mar 28, 2026
ed23f04
Exception handling, examples
Mar 28, 2026
6ada910
Merge remote-tracking branch 'origin/master-03-23' into master-03-23
Mar 28, 2026
8cd7120
Remove this unused "ignore" local variable.
Mar 28, 2026
afb6436
Always import java.awt.Font, full class name for org.openpdf.text.Fo…
Mar 28, 2026
1eb6642
Exceptions, Javadoc, Example for null input stream, try with ressourc…
Mar 28, 2026
54a0555
Small corrections
Mar 28, 2026
6da9c2d
Javadoc, formatting
Mar 28, 2026
dd06509
Javadoc, formatting
Mar 28, 2026
a6512cf
Javadoc, formatting
Mar 28, 2026
10bfe30
The caller or loadFont(filename,...) is responsible to check the give…
Mar 28, 2026
2189d38
No loading from URLs - use loadFont(name, inputStream) if you want to…
Mar 28, 2026
eb0037f
delete unused imports
Mar 28, 2026
ceee29e
corrected texts and file names
Mar 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions openpdf-core/src/main/java/org/openpdf/text/Document.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

import org.openpdf.text.error_messages.MessageLocalization;
import org.openpdf.text.pdf.FopGlyphProcessor;
import org.openpdf.text.pdf.GlyphLayoutManager;
import org.openpdf.text.pdf.PdfDate;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -129,6 +130,12 @@ public class Document implements DocListener {
* The DocListener.
*/
private final List<DocListener> listeners = new ArrayList<>();

/**
* GlyphLayoutManager if set, null otherwise
*/
private GlyphLayoutManager glyphLayoutManager;

/**
* Is the document open or not?
*/
Expand Down Expand Up @@ -207,6 +214,28 @@ public class Document implements DocListener {
*/
TextRenderingOptions textRenderingOptions = new TextRenderingOptions();

/**
* Get the glyphLayoutManager
*
* @return glyphLayoutManager or null
*/
public GlyphLayoutManager getGlyphLayoutManager() {
return glyphLayoutManager;
}

/**
* Set the glyphLayoutManager
* Fluent API: <code>Document document = new Document().setGlyphLayoutManager(glyphLayoutManager);</code>
*
* @param glyphLayoutManager
* @return
*/
public Document setGlyphLayoutManager(GlyphLayoutManager glyphLayoutManager) {
setGlyphSubstitutionEnabled(false); // Use either FopGlyphSubstition or GlyphLayoutManager, not both.
this.glyphLayoutManager = glyphLayoutManager;
return this;
}

/**
* Constructs a new <CODE>Document</CODE> -object with the default page size as <CODE>PageSize.A4</CODE> .
*/
Expand Down
Loading
Loading