Hi.
I received an error converting to PDF/A1 - text in error file:
error.zip (1.6 KB)
The error appears in Alt Linux 10, everything is fine under Windows.
Can you tell me what the problem is?
Hi.
I received an error converting to PDF/A1 - text in error file:
error.zip (1.6 KB)
The error appears in Alt Linux 10, everything is fine under Windows.
Can you tell me what the problem is?
Hi
Please, answer me
@PoweRDeaD
I tested a bit
It seems that on Linux the library can’t find fonts that are required to embed therefore conversion fails
I checked with Alt Linux 10 via docker on Aspose.PDF Drawing 23.2 and it generates correct file
pdf_1_font_issue_file_out.pdf (2.2 MB)
Code I’ve used
static void pdfa_1_issue()
{
string input = InputFolder + "pdf_1_font_issue_file.pdf";
string output = OutputFolder + "pdf_1_font_issue_file_out.pdf";
using (var pdfDoc = new Document(input))
{
pdfDoc.Convert(new MemoryStream(), PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
pdfDoc.Save(output);
}
}
Could you confirm that Linux environment has all fonts present?
I run with following arguments
<DockerfileRunArguments>-v C:\Windows\Fonts:/usr/share/fonts/truetype/msttcorefonts -v "C:\Users\UserName\source\repos\FFS_Testing\Input":/testdata -v "C:\Users\UserName\source\repos\FFS_Testing\Output":/test/TestOut</DockerfileRunArguments>
I believe that /usr/share/fonts/truetype/msttcorefonts folder should be containing all font necessary for conversion