aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src/main
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2022-01-14 13:16:03 +0000
committerSimon Steiner <ssteiner@apache.org>2022-01-14 13:16:03 +0000
commitc21d1426d2bf612c24127c9ba1793bcaddded917 (patch)
tree69db281305cc333638f17d5ef908894d0754047a /fop-core/src/main
parent2babf53815259d4829c9a532a4711c524d7ddbf3 (diff)
downloadxmlgraphics-fop-c21d1426d2bf612c24127c9ba1793bcaddded917.tar.gz
xmlgraphics-fop-c21d1426d2bf612c24127c9ba1793bcaddded917.zip
FOP-2910: Remove cidset for PDF/A-2
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1897033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core/src/main')
-rw-r--r--fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java b/fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java
index 1238d11a6..57f8a17a9 100644
--- a/fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java
+++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFFactory.java
@@ -1328,7 +1328,7 @@ public class PDFFactory {
getDocument().registerObject(stream);
}
CustomFont font = getCustomFont(desc);
- if (font instanceof CIDFont) {
+ if (font instanceof CIDFont && document.getProfile().pdfAMode.getPart() < 2) {
CIDFont cidFont = (CIDFont)font;
buildCIDSet(descriptor, cidFont);
}