Skip to content

Convert pdf command issue with colors #192

@b-ilic-levi9-com

Description

@b-ilic-levi9-com

Hi,

We are developing solutions for our client, that includes usage of MuPDF.NET library and two functionalities – recolor and convert to pdf functions.
Our license and engineering code is 370.

If we convert attached svg file, converted pdf won't have any colors (it will be in black and white).
Do you have an idea what could be causing the issue?

Here are also code snippets how we are using the recolor and convert methods.

private byte[] ConvertCommand(byte[] byteArray)
{
var muPDFDocument = new MuPDF.NET.Document(stream: byteArray);
return muPDFDocument.Convert2Pdf();
}

private byte[] RecolorCommand(byte[] byteArray)
{
var muPDFDocument = new MuPDF.NET.Document(stream: byteArray);
muPDFDocument.Recolor(0, "CMYK");
return muPDFDocument.Write();
}

Kind regards,
Bojan

converted-file.pdf
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions