PDFDoc Scout supports unicode fonts.
You can add unicode text by using AddUnicodeText method of Page object.
C# sample:
using System;
using System.Collections.Generic;
using System.Text;
using PDFDocScout;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Create PDFDoc object
PDFDocument PDFDoc = new PDFDocument();
// Initialize library
PDFDoc.InitLibrary("demo", "demo");
// Set output filename for PDF document
PDFDoc.OutputFileName = "pdfdocscout_make-font.pdf";
// Automatically open generated PDF document in default PDF viewer application
PDFDoc.AutoOpenGeneratedPDF = true;
// Starts PDF document generation
PDFDoc.BeginDocument();
// Set font for drawning text
PDFDoc.Page.SetFont("Arial", 45, false, false, false, false, 0);
// Add text to current page - draw text at (100,100) and rotate at 15 degrees
PDFDoc.Page.AddUnicodeText("Hello, world!", 100, 100, 15);
// close pdf document generation
PDFDoc.EndDocument();
}
}
}
沒有留言:
張貼留言