VintaSoft PDF .NET Plug-in Discussions
Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.
Board index < VintaSoft Imaging < VintaSoft PDF .NET Plug-in Discussions
Vintasoft.Imaging.Pdf.PdfDocument pdfConvert;
Vintasoft.Imaging.Pdf.PdfDocument pdfSource;
pdfSource = new Vintasoft.Imaging.Pdf.PdfDocument(@"D:\test.pdf");
pdfConvert = new Vintasoft.Imaging.Pdf.PdfDocument(Vintasoft.Imaging.Pdf.PdfFormat.Pdf_A);
foreach (Vintasoft.Imaging.Pdf.Tree.PdfPage pPage in pdfSource.Pages)
{
pdfConvert.Pages.Add(pPage);
}
pdfConvert.Save(@"d:\testpdfa.pdf");
pdfSource.Dispose();
pdfConvert.Dispose();
I assume that embedding fonts to pdf is not supported by VintaSoft PDF, is it? Can you say, if and when this will be supported? using(Vintasoft.Imaging.Pdf.PdfDocument pdfSource = new Vintasoft.Imaging.Pdf.PdfDocument(@"D:\test.pdf"))
{
pdfSource.Pack(@"d:\testpdfa.pdf", Vintasoft.Imaging.Pdf.PdfFormat.Pdf_A);
}
To check whether a font is embedded please use PdfFont.IsFullyDefined property. To get all fonts please use PdfDocument.GetFonts() method.happy too early, with vintasoft.imaging.dll, version 8.3.5.1 and vintasoft.imaging.pdf.dll, version 5.3.5.1, i got the error:PDF/A document must have embedded fonts only. SDK does not embed fonts into PDF document automatically and you need to do this in your code.