Word-to-searchable-pdf-headers-are-missing

Hi Team,

As suggested by below support reqeust
https://forum.aspose.com/t/word-to-searchable-pdf-headers-are-missing/280590/4

Will it be possible to fiz this issue in Aspose.Word . I have attached the sample documents in the above request.

@Gpatil Could you please elaborate your problem in more details? In the MS Word attached in the mentioned thread there are only two pages, while in the attached PDF there are 12 pages. So it is not clear how to produce the problematic PDF from the attached MS Word document.

Hi @alexey.noskov

You can check in the attached 12 Pages Searchable PDF in earlier ticket .
The headers are not consistent. The header appeared in first 1 page and then in last 2 pages.
The headers contain Red Bold TexT, Name, DOB ,MEMBER ID are missing for some middles pages.

This happen after we try to convert docx to searchable pdf as per earlier ticket

The Original Doc File is attached

A210118625-MRN-NOPHI.docx (46.0 KB)

@Gpatil Thank you for additional information. Unfortunately, I cannot reproduce the problem using the latest 24.4 version of Aspose.Words. Here is PDF produced on my side using the following simple code:

Document doc = new Document(@"C:\Temp\in.docx");

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions()
{
    ZoomFactor = 100,
    ZoomBehavior = PdfZoomBehavior.FitPage,
    SaveFormat = Aspose.Words.SaveFormat.Pdf,
    ColorMode = ColorMode.Normal,
    FontEmbeddingMode = PdfFontEmbeddingMode.EmbedAll,
    EmbedFullFonts = true,
    Compliance = PdfCompliance.PdfUa1,
    ImageCompression = PdfImageCompression.Auto,
    TextCompression = PdfTextCompression.None,
    MemoryOptimization = true,
    JpegQuality = 50,
    PageMode = PdfPageMode.FullScreen,
    UseHighQualityRendering = true,
    OptimizeOutput = true,
    HeaderFooterBookmarksExportMode = HeaderFooterBookmarksExportMode.All,
    AdditionalTextPositioning = true,
    DisplayDocTitle = true,
    ExportDocumentStructure = true,
    UseCoreFonts = true
};

doc.Save(@"C:\Temp\out.pdf", pdfSaveOptions);

out.pdf (7.6 MB)