Skip to content

Commit 443032f

Browse files
committed
PDFBOX-5305: remove check for filters, as suggested by mkl per TECHNICAL CORRIGENDUM 2 which requests this only for catalog metadata xmp
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1894487 13f79535-47bb-0310-9956-ffa450edef68
1 parent 89d57f9 commit 443032f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

preflight/src/main/java/org/apache/pdfbox/preflight/font/descriptor/FontDescriptorHelper.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_METADATA_FORMAT_UNKNOWN;
2929
import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_METADATA_FORMAT_XPACKET;
3030
import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_METADATA_UNKNOWN_VALUETYPE;
31-
import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_SYNTAX_STREAM_INVALID_FILTER;
3231

3332
import java.io.IOException;
3433
import java.io.InputStream;
@@ -217,14 +216,6 @@ protected void checkFontFileMetaData(PDFontDescriptor fontDescriptor, PDStream f
217216

218217
if (metadata != null)
219218
{
220-
// Filters are forbidden in a XMP stream
221-
if (!metadata.getFilters().isEmpty())
222-
{
223-
this.fContainer.push(new ValidationError(ERROR_SYNTAX_STREAM_INVALID_FILTER,
224-
this.font.getName() + ": Filter specified in font file metadata dictionary"));
225-
return;
226-
}
227-
228219
byte[] mdAsBytes = getMetaDataStreamAsBytes(metadata);
229220

230221
try

0 commit comments

Comments
 (0)