Free Support Forum - aspose.com

Hebrew content turned out mirrored when using Aspose

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

@dunghnguyen

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-44989 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.