Hi team,
I’m using Aspose PDF .NET to save a PDF file to another PDF, but I got an issue with Hebrew content. When I open a PDF file as a Document, collect pages and save it to another Document, contents of Hebrew turned out mirrored.
My sample code:
String input_File = “Attached_Sample.pdf”;
String output_File = “Output_Result.pdf”;
PdfContentEditor pdfContentEditor = new PdfContentEditor();
pdfContentEditor.BindPdf(Input_File);
using (Document pdfDocument = pdfContentEditor.Document)
{
Document pdfDocument2 = new Document();
PageCollection pages = pdfDocument.Pages;
foreach(Page page in pages)
{
pdfDocument2.Pages.Add(page);
}
pdfDocument2.Save(output_File);
}
I tried to use another function to solve:
pdfDocument2.Direction = Direction.R2L;
Before I save to output but Hebrew content still changes to mirrored.
I’m using new Aspose PDF .Net 18.6.1.
Below is my pdf sample:
Hebrew.pdf (75.5 KB)
Please help me investigate this issue.
Thanks,
Dung. H Nguyen