Skip to content

PDF/A compatibility #1841

@paulius-petkus

Description

@paulius-petkus

Magick.NET version

14.0.0

Environment (Operating system, version and so on)

Windows (but .Net 8 app)

Description

I am saving image in MagickFormat.Pdfa format. However online validators show that result pdf is not valid.

I am using this site to validate pdf results: https://xodo.com/validate-pdfa

Steps to Reproduce

Convert image to pdf by setting magickFormat.Pdfa

Simplified code:

// Loading image and adding to collection
var magickReadSettings = new MagickReadSettings();
using var image = new MagickImage("Path_to_file", magickReadSettings);
using var imagesCollection = new MagickImageCollection();
imagesCollection.Add(new MagickImage(image));

// Saving to PDF.
using var fileStream = File.Create(outputFile);
var magickFormat =MagickFormat.Pdfa; // Setting format PDF/A
imagesCollection.Write(fileStream, magickFormat);

Images

Validation results:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions