.. _1d3fdf7b-1dab-407f-b451-d6d20c9f21a6: ================================== File has some garbage before %PDF- ================================== .. contents:: :depth: 2 -------------- Classification -------------- .. list-table:: :align: center * - **Validator** - **Validator version** - **Error message type** * - Ghostscript - 10.06.0 - .. list-table:: :align: center * - **File format** - **Version** - **Specification** - **Description** - **Location** * - application/pdf - 1.2 - - - `OPF `__ -------- Analyses -------- No investigations yet. .. note:: To help, share and save knowledge about fixing validation errors, please see: https://github.com/Digital-Preservation-Finland/knowledge-base/tree/master/.github/CONTRIBUTING.rst ------------------ Possible solutions ------------------ .. contents:: :local: No remediation determined. All solutions are listed :ref:`here `. .. note:: To update or provide a solution, please see: https://github.com/Digital-Preservation-Finland/knowledge-base/tree/master/.github/CONTRIBUTING.rst -------------- Output example -------------- :: **** Warning: File has some garbage before %PDF- . The following errors were encountered at least once while processing this file: xref table was repaired **** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> Acrobat Distiller 3.0 for Windows <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification. GPL Ghostscript 10.06.0 (2025-09-09) Copyright (C) 2025 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 18. Page 1 Loading font Times-Roman (or substitute) from /opt/ghostscript-10.06/share/ghostscript/Resource/Font/NimbusRoman-Regular Loading font Times-Italic (or substitute) from /opt/ghostscript-10.06/share/ghostscript/Resource/Font/NimbusRoman-Italic Page 2 Loading font Times-Bold (or substitute) from /opt/ghostscript-10.06/share/ghostscript/Resource/Font/NimbusRoman-Bold Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page 16 Page 17 Page 18 The following warnings were encountered at least once while processing this file: File has some garbage before %PDF- ------------------ Notes on the error ------------------ ------------------------------ Related errors by source files ------------------------------ :: Ghostscript: File has some garbage before %PDF- JHOVE: No PDF header veraPDF: A CIDSet entry in the Font descriptor is missing or does not correctly identify all glyphs present in the embedded font subset and used for rendering veraPDF: Actual length of the stream (.* byte(s)) does not match the value of the Length key in the Stream dictionary (.* byte(s)) veraPDF: Annotation flags are either missing or set the annotation to be hidden/invisible or non-printable (F = null, Print = null, Hidden = null, Invisible = null, NoView = null) veraPDF: Annotation.s color (C present = true) or interior color (IC present = false) is used without specifying RGB-based destination output profile veraPDF: A property is either not defined in XMP Specification, or is not defined in any of the extension schemas veraPDF: can not locate xref table veraPDF: DeviceGray colour space is used without output intent profile veraPDF: DeviceRGB colour space is used without RGB output intent profile veraPDF: End of file is reached veraPDF: Extra spacings or missing EOL characters around indirect object/generation number or keywords 'obj' and 'endobj' veraPDF: File header .*%PDF-1..* (offset = .*) starts at non-zero offset or does not match the pattern %PDF-1.n, where 'n' is a single digit number between 0 and 7 veraPDF: File header .*%PDF-*.* (offset = .*) starts at non-zero offset or does not match the pattern %PDF-n.m veraPDF: Missing ID in the document trailer verapdf: org.verapdf.pd.font.cmap.CMapParser getBfrangeEndFromBytes WARNING: Incorrect bfrange in toUnicode CMap: bfrange contains more than 256 code. veraPDF: Pages not found veraPDF: Real value .* out of range veraPDF: The document catalog dictionary doesn't contain metadata key or metadata stream dictionary does not contain either entry Type with value /Metadata or entry Subtype with value /XML veraPDF: The font program is not embedded veraPDF: The value of CreationDate entry from the document Info dictionary and its matching XMP property .*xmp:CreateDate.* are not equivalent (Info /CreationDate = D:.*, XMP xmp:CreateDate = .*) veraPDF: The value of ModDate entry from the document Info dictionary and its matching XMP property .*xmp:ModifyDate.* are not equivalent (Info /ModDate = D:.*, XMP xmp:ModifyDate = .*) veraPDF: XMP property does not correspond to type null Notice: any operation suggested on this page should be carefully considered before use, as this article is in continuous development. Data is available at https://github.com/Digital-Preservation-Finland/knowledge-base.