I'm currently using FreeSpire.PDF nuget version 7.20 inside a .NET application, the application runs and executes correctly, anyhow, when changing the targeted CPU from Any/x86 to x64 the output gets all messed up; attached to the Post the output comparission
C# code:
- Code: Select all
class FreeSpirePDF_tester
{
public void WriteTestDocument(string QRData)
{
string value = QRData;
var doc = new PdfDocument(PdfConformanceLevel.None);
var page = doc.Pages.Add(PdfPageSize.A4, new PdfMargins());
var font = new PdfTrueTypeFont(new Font("Arial", 10f, FontStyle.Bold), true);
var labelBounds = new RectangleF(20, 20, 400, font.Height);
page.Canvas.DrawString(value, font, PdfBrushes.Black, labelBounds, new PdfStringFormat() { RightToLeft = true });
doc.SaveToFile("arabic.pdf");
}
}