Skip to content

Rejection codes ​

When Kura cannot produce the output you asked for, the report carries ok: false, an errorCode, a human-readable error, and sometimes a suggestedLevel. This page lists every code, what it means, and what to do.

Everything not listed here converts, with the changes recorded as issues in the report.

Input ​

CodeMeaningWhat to do
PARSE_ERRORthe bytes are not a PDF, or are damaged beyond qpdf's recoverycheck the file; if it opens elsewhere, please report it with the file
BAD_INPUTno input buffer was suppliedAPI misuse
BAD_LEVELthe level string is not one Kura knowssee The standards
ICC_PROFILE_MISSINGthe colour profile named for conversion was not found in any profile foldercheck the name, or pass the profile file, or its folder with --icc-folder
IMAGE_INPUT_WRAPPEDnot an error: the input was a JPEG and was wrapped as a one-page PDFnothing; reported as an issue
NESTING_TOO_DEEPthe page tree or resources are nested more than 500 levels deep, or loop back on themselves; the file is malformed or crafted to stall readerstreat the file as hostile; if it comes from a trusted source, please report it
LEVEL_VERIFY_ONLYthe level is a check-only flavour (x4p, x5g, x5n, x5pg, x6n, x6p, vt2, ua1, ua2) and a conversion was asked forconvert to suggestedLevel (x4, x6 or vt1), or for ua1/ua2 use --level 2u --ua or --level 4 --ua; or add --check. x5n can be produced when you pass --profile-url and an n-colour --dest-profile
UA_UNSUPPORTED_LEVEL--ua was given with a level that is not PDF/A; PDF/UA layers only on PDF/A (UA-1 on parts 1 to 3, UA-2 on part 4)use suggestedLevel (2u) or another PDF/A level

Encryption ​

CodeMeaningWhat to do
PASSWORD_REQUIREDthe document has a user password and none, or the wrong one, was suppliedpass --password
ENCRYPTED_ADEPTthe document is bound to Adobe ADEPT digital rights management; the content key is not in the fileno tool can decode this without the owner's key material
ENCRYPTED_UNSUPPORTEDa non-standard security handler that needs external key materialas above

Standard encryption, RC4 and AES with an empty or supplied password, is removed automatically and is not a rejection.

Content the target forbids ​

CodeMeaningWhat to do
TRANSPARENCY_P1the document uses transparency and the target is PDF/A-1 or PDF/X-1a/X-3, which forbid it; the engine had no way to flatten ituse suggestedLevel, usually 2b or x4; or --allow-visual-risk to force transparency off; or a build with PDFium, which rasterizes the affected pages
JBIG2_NOT_ALLOWEDPDF/X-1a and PDF/X-3 do not allow JBIG2 images, and this build cannot decode one to re-encode ituse x4 or x6, or a build with PDFium
JPX_UNREADABLEa JPEG 2000 image could not be decoded, so it could not be re-encoded for a level that forbids JPEG 2000 or the form it is inuse a part 2 or later level, or x4 or x6 for print
CMYK_MIXED_P1PDF/A-1 with both RGB and CMYK content under a single output intentuse suggestedLevel
RGB_UNDER_CMYK_P1RGB content under a CMYK output intent at PDF/A-1use suggestedLevel
X1A_COLOR_UNCONVERTIBLEPDF/X-1a needs every colour in CMYK and something could not be converted, for example a mesh shading with per-vertex colourthe detail names the object; suggestedLevel is x4, which permits it
FACTURX_REQUIRES_PDFA3an e-invoice was requested at a level that cannot carry attachmentsuse 3b, 3u, 3a or 4f
FONT_FORMAT_NOT_ALLOWEDan OpenType font cannot be stored at a PDF 1.4 based level (PDF/A-1, PDF/X-1a, PDF/X-3)use a part 2 or later level, or x4
FONT_UNEMBEDDABLEa page uses a font that can be neither embedded nor substituted, and the page cannot be rasterizedinstall the font, or use a build with PDFium
IMAGE_DEPTH_UNSUPPORTED16-bit image data could not be decoded for a level that needs it reducedplease report with the file
EMBED_SOURCE_UNSUPPORTED_LEVELembedding the source document needs a level that allows attachmentsuse 3b, 3u, 3a, 4f or e1

E-invoice payloads ​

CodeMeaningWhat to do
EINVOICE_NOT_A_DOCUMENTthe XML is not a recognised invoice or order document, or is not XMLcheck the payload
EINVOICE_PROFILE_UNKNOWNthe document declares no guidelinepass --facturx-profile if you know it
EINVOICE_PROFILE_INVALIDthe declared level is outside the hybrid code listfix the payload
NO_EINVOICE--extract-invoice found no attachmentthe file is not a hybrid invoice

Process ​

CodeMeaningWhat to do
CONVERT_TIMEOUTthe watchdog fired; exit status 3raise PDFA_TIMEOUT, or treat the file as hostile
SERIALIZE_ERRORthe converted document could not be writtenplease report with the file
INTERNAL_ERRORan unexpected failure was caught at the boundaryplease report with the file
SIGN_NO_PAGESsigning was requested on a document with no pages
SIGN_FAILEDthe signature could not be created; the detail gives the reasoncheck the certificate and password
DEFAULT_PROFILE_MISMATCHthe supplied default profile is not a valid ICC profile of the needed colour spacepass an RGB, CMYK or gray profile as asked
X_COLOR_ENGINEthe colour transform could not be set upcheck the supplied profiles; otherwise please report with the file
RASTERIZER_UNAVAILABLEpage rasterization was requested but this build has no rendereruse a build with PDFium
RASTERIZE_FAILEDsome pages could not be renderedplease report with the file
NOT_PDFA--only-pdfa was set and the result did not pass the PDF/A check, so nothing was writtenrun without --only-pdfa to see the result and its issues, or try --reconvert or --fallback-pages

Tools ​

kura tool <name> prints {"ok":false,"tool":…,"error":…} on failure, and the report tools (inventory, invoice-synopsis, visualize, certify, uncertify, verify-cert) also carry an errorCode. The exit status is 64 for a usage mistake, 2 for anything else, and 1 where the tool's answer is "no" (for example verify-cert on a file without a certificate, or extract-dieline when no die line is found).

CodeMeaningWhat to do
USAGEwrong arguments or an out-of-range option; the message shows the right formrun kura tool <name> --help
IO_ERRORa file could not be read or writtencheck the paths and permissions
PARSE_ERRORthe PDF, or the result JSON given to visualize, could not be readcheck the file; pass --password for an encrypted PDF
DICT_ERRORthe --report-lang language is unknown, or the --report-dict file could not be readuse en, de, fr, es, nl or it, or fix the dictionary file
NO_RASTERIZERvisualize needs a page renderer and this build has noneuse a build with PDFium
RASTER_ERRORvisualize could not render the document or one of its pagesplease report with the file
CHECK_FAILEDcertify could not check the document (the engine's own code is shown instead when there is one)see the rest of this page for that code

npm packages ​

The npm packages pass every code above through on KuraError.code, and add a few of their own:

CodeMeaningWhat to do
BAD_LEVELthe level is not in LEVELS (or CHECK_ONLY_LEVELS for check())see The standards
BAD_INPUTthe input, or an option that takes bytes, is not a Uint8Array or ArrayBuffer; in the WebAssembly build also a bad pdfVersionpass bytes
BAD_OPTIONan option value was refused, for example inkLimit outside 100 to 400fix the option; the message names it
ENGINE_MISSINGkura-pdf found no engine binary for this platforminstall kura-pdf-wasm, or set KURA_BIN
ENGINE_LOADkura-pdf-wasm could not load its WebAssembly modulecheck the package is installed completely
ENGINE_ERRORthe engine stopped without a reportplease report with the file
TIMEOUTkura-pdf ran past timeoutMsraise timeoutMs, or treat the file as hostile

The HTTP API's own status codes are on HTTP API.

Findings that are not rejections ​

Every change and finding code in a report is listed on Issue codes. Two deserve a mention here because they change how to read a report:

  • SCAN_INCOMPLETE: a pass could not read part of the document, so its findings may be incomplete for that content. Treat the check as inconclusive rather than clean.
  • Any issue whose detail ends in (visual risk): a repair that can change appearance, made because --allow-visual-risk was set.

Dual-licensed under AGPL-3.0 and Commercial License.