You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using JasperReports to generate PDF/A-3B documents and attempting to validate them with the Mustang library.
However, I encounter the following error: "A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset."
The fonts that I'm using are OpenSans fonts. In my fontsfamily.xml:
<?xml version="1.0" encoding="UTF-8"?>
<fontFamilies>
<fontFamily name="OpenSans">
<!-- Normal Font -->
<normal><![CDATA[fonts/OpenSans-Regular.ttf]]></normal>
<!-- Bold Font -->
<bold><![CDATA[fonts/OpenSans-Bold.ttf]]></bold>
<!-- Italic Font -->
<italic><![CDATA[fonts/OpenSans-Italic.ttf]]></italic>
<!-- Bolt italic Font -->
<boldItalic><![CDATA[fonts/OpenSans-BoldItalic.ttf]]></boldItalic>
<!-- Is font is embedded in PDF -->
<pdfEmbedded><![CDATA[true]]></pdfEmbedded>
</fontFamily>
</fontFamilies>
The pdf acrobat reader also shows in the fonts properties that a subset of the font is embedded:
The error also occurs when I omit all text from the .jrxml report template, leaving only the font styles embedded. Here is the example .jrxml template:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="name" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="500" leftMargin="64" rightMargin="31" topMargin="0" bottomMargin="0" uuid="redacted">
<style name="Standard" isDefault="true" pattern="" fontName="OpenSans" fontSize="10" isPdfEmbedded="true" pdfEncoding="Identity-H"/>
</jasperReport>
I tried out another font as well (DejaVu Sans), to see if OpenSans is the problem but it didn't work either.
Here is an example output file that fails to be validated: output.pdf
In order to be PDF/A-3 compliant, one could either remove the CIDSet Stream for PDF/A-3 creations or correct the entry creations for the CIDSet to match the entries from the embedded font.
The text was updated successfully, but these errors were encountered:
I am using JasperReports to generate PDF/A-3B documents and attempting to validate them with the Mustang library.
However, I encounter the following error: "A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset."
I am using the following libraries:
Here is the code I use to create pdfs:
The fonts that I'm using are OpenSans fonts. In my
fontsfamily.xml
:In my
jasperreports_extension.properties
:I suspected that there might be an issue with how I embed the font, so here are my attempts:
I have ensured that the fonts are embedded as subsets by using the isPdfEmbedded attribute like this:
<style name="Standard" isDefault="true" pattern="" fontName="OpenSans" fontSize="10" isPdfEmbedded="true"/>
The pdf acrobat reader also shows in the fonts properties that a subset of the font is embedded:
The error also occurs when I omit all text from the .jrxml report template, leaving only the font styles embedded. Here is the example .jrxml template:
I tried out another font as well (DejaVu Sans), to see if OpenSans is the problem but it didn't work either.
Here is an example output file that fails to be validated: output.pdf
Here is my related stackoverflow post.
In order to be PDF/A-3 compliant, one could either remove the CIDSet Stream for PDF/A-3 creations or correct the entry creations for the CIDSet to match the entries from the embedded font.
The text was updated successfully, but these errors were encountered: