Forum Bugs

Indented PDF Profile is not being reflected in the generated PDF.

karthik_krishna
I have set a PDF profile PdfA_1B in the code, but the same is not reflected on the output.

prince = new Prince(myPrinceExePath, Events)
            {
                PdfProfile = PdfProfile.PdfA_1B,
                JavaScript = true,
                NoWarnCssUnknown = true
            };


Output generated has a version PDF/A-2B

I am using prince with .NET Framework 4.8 using NuGet package PrinceXMLWrapper by YesLogic Pty. Ltd.

what is wrong here ?
  1. output.png5.5 kB
    output pdf version
howcome
Could you upload the source files, and the resulting PDF file?

Edited by howcome

Siddhant
Attached the input file and resulting pdf
  1. Input.html1.6 kB
    Input html file
  2. Output.pdf78.1 kB
    pdf generated
howcome
Could you try run Prince from the command-line, like this:
prince --pdf-profile="PDF/A-1b"  Input.html
Siddhant
Yes it is working in command-line, but we can't change to command-line as we are using nuget package everywhere and changing to command-line will require a lot of code changes.
karthik_krishna
@howcome: is there any problem with the nuget based prince wrapper ?
mikeday
The attached Output.pdf file appears to have been modified by another program after being generated by Prince, do you have the original PDF file?