After converting Doc to Searchable PDF. Text is truncating in PDF

Hi Team,

After converting to docx to searchable pdf. The data from the right margin is truncating in output.pdf.
Seems like doc is A5 page or A3 paper size. But Aspose.OCR 24.11.3 is treating it as an A4 document.

How can we fix this issue

        // Load the DOCX file
        Document doc = new Document("PrintLayoutIssueFile.docx");

PdfSaveOptions pdfSaveOptions = new()
{
				ZoomFactor = 100,
				ZoomBehavior = PdfZoomBehavior.FitPage,
				SaveFormat = AsposeWords.SaveFormat.Pdf,
				ColorMode = ColorMode.Normal,
    FontEmbeddingMode = PdfFontEmbeddingMode.EmbedAll,
				EmbedFullFonts = false,
				Compliance = PdfCompliance.PdfUa1,
				ImageCompression = PdfImageCompression.Jpeg,
				TextCompression = PdfTextCompression.Flate,
				MemoryOptimization = true,
				JpegQuality = 100,
				PageMode = PdfPageMode.FullScreen,
				UseHighQualityRendering = true,
				OptimizeOutput = true,
				HeaderFooterBookmarksExportMode = HeaderFooterBookmarksExportMode.All,					
				DisplayDocTitle = true,
				ExportDocumentStructure = true,
				UseCoreFonts = true,
				DownsampleOptions = DSOResolution,
				PreserveFormFields = false
};
        // Save the DOCX file as a PDF
        doc.Save("output.pdf",pdfSaveOptions );

        // Initialize Aspose.OCR
        AsposeOcr ocrEngine = new AsposeOcr();

        // Perform OCR on the PDF to make it searchable
        using (FileStream pdfStream = new FileStream("output.pdf", FileMode.Open))
        {
            OcrInput input = new OcrInput(InputType.PDF);
            input.Add(pdfStream);

            // Recognize the text from the PDF
            OcrResult result = ocrEngine.Recognize(input);

            // Save the searchable PDF
            result.Save("searchable_output.pdf", SaveFormat.Pdf);
        }
    }

@Gpatil

Can you please share the sample files for our reference as well? We will test the scenario in our environment and address it accordingly.

PrintLayoutIssueFile.docx (52.9 KB)

Please find the attached document

@Gpatil

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): OCRNET-973

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.