Convert PDF to DOC - Rotated PDF File is not getting converted correctly

Hi Aspose team,

We tried to convert a rotated pdf file to doc and we found the text in pdf is converted to pictures in the new doc.
We are using v19.12. Here’s our code
using (Document pdf = new Document(“sample.pdf”))
{
// Save using save options
// Create DocSaveOptions object
DocSaveOptions docSaveOptions = new DocSaveOptions();
// Set the recognition mode as Flow
docSaveOptions.Mode = DocSaveOptions.RecognitionMode.Flow;
pdf.Save(“sample.doc”, docSaveOptions);
}

We tested Foxit and it can rotate the pdf to the correct position and then convert it to the right word.

So we tried to add code to find the orientation of the pdf pages using Aspose. pdf, one is 90° and the other is 270° but it can’t rotate more than two pages at the same time.

Hre’s our code to roate the pdf Working with Page Rotation|Aspose.PDF for .NET
// Create PdfPageEditor object
PdfPageEditor pEdit = new PdfPageEditor();

// Rotate odd pages at 180 degrees
pEdit.BindPdf(“sample.pdf”);
pEdit.ProcessPages = new int[] { 1 };
pEdit.Rotation = 180;
pEdit.Save(“sample_rotate_180_out.pdf”);

// Rotate even pages at 270 degrees
pEdit.BindPdf(dataDir + “inFile2.pdf”);
pEdit.ProcessPages = new int[] { 1 };
pEdit.Rotation = 270;
pEdit.Save(“sample_rotate_270_out.pdf”);

// Find at what degrees a page was rotated
pEdit.BindPdf(“sample.pdf”);
int degrees = pEdit.GetPageRotation(1);
pEdit = null;

Please help check it. Thanks. Here’s the test file:
rotate.pdf (130.2 KB)

@Glority_Developer,

Thanks for contacting support.

We have tested this scenario in our environment and have been able to observe the issue that you have mentioned. We have logged issue with ID PDFNET-47504 in our issue tracking system. We will share with you as soon as logged issue is fixed.