Hello,
How can I embed the current font used in an existing pdf.
I am using Free Spire.PDF for .NET.
Regards
Norbert
PdfDocument doc = new PdfDocument();
PdfPageBase page = doc.Pages.Add();
String fontFileName = "arial.ttf";
PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(fontFileName, 20f);
page.Canvas.DrawString("Hello World", trueTypeFont, new PdfSolidBrush(Color.Black), 10, 10);
doc.SaveToFile("result.pdf");
Dim DocPdf As PdfDocument = New PdfDocument()
DocPdf.LoadFromFile(sFile) 'filename
Dim section As PdfSection
section = DocPdf.Sections.Add()
section.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle270
DocPdf.PrinterName = PrintO 'printerqueue
Dim printDoc As New PrintDocument
printDoc = DocPdf.PrintDocument
printDoc.DefaultPageSettings.PaperSize = printDoc.PrinterSettings.PaperSizes.Item(28) '(A3)
printDoc.DocumentName = f.Name 'name of Doc
printDoc.Print()