Header table row on each page dosent work when doc is converted to PDF

Hello

If I save a document in word-format with a table that spans over several pages the table header row is repeated as it should. But if I convert it to PDF the table header row only show up on the first page?

Is there a way to make this work?

Hi

Thanks for your inquiry. Could you please attach your document for testing?(Only you and Aspose staff members can download it).

I tried to do this using Aspose.Words 5.0.2 and Aspose.Pdf 3.6.2.0 and all works fine on my side.

Best regards.

Se the attached document

Hello!

Thank you for your inquiry. I have reproduced this issue and logged it as #4511 in our defect database. We’ll investigate it and try to fix. Notification will be posted here in the thread on any progress.

As a workaround you can try converting from DOC to PDF. This works fine. When I saved your document from MS Word as DOC the issue dissolved.

Regards,

The problem is that I don’t save the document first. I convert it directly to pdf.

List<MemoryStream> streamColl = new List<MemoryStream>();
streamColl.Add(SendToBrowserAsPdf(doc));
FileStream outStream = new FileStream("C:\\Invoices.pdf", FileMode.Create);
PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.Concatenate(streamColl.ToArray(), outStream);
outStream.Close();
private MemoryStream SendToBrowserAsPdf(Document doc)
{
    MemoryStream stream = new MemoryStream();
    doc.Save(stream, SaveFormat.AsposePdf);
    stream.Seek(0, SeekOrigin.Begin);
    XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.Load(stream);
    Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
    pdf.IsImagesInXmlDeleteNeeded = true;
    pdf.BindXML(xmlDoc, null);
    pdf.IsTruetypeFontMapCached = false;
    MemoryStream stream2 = new MemoryStream();
    pdf.Save(stream2);
    return stream2;
}

Hello!

I mean if you have the possibility to change source documents manually then you could save this one as DOC from MS Word. This is just a workaround until we have fixed the issue. Of course, if there are several hundreds of such documents or if you are processing documents automatically acquired from the third parties then you only have to wait for the issue resolution.

Regards,

Hello,

I’m trying to do same thing as original post - table header repeated per page and export the document pdf.

The word doc itself is repeating the table header if I look at it in Word but converted Pdf does NOT have repeated table headers.

Is this issue resolved? If so what do I need to do to have table header repeated per page?

Thanks

Hi

Thanks for your request. Do you use legacy method (Aspose.Words+Aspose.Pdf) or new method (Document.SaveToPdf) to convert your document to PDF? Please attach your document here for testing and code you use to convert it to PDF.

Best regards.

Hi

I am also having this problem using Aspose.Words 6.5.0.0 and the SaveToPDF method. We really need a solution to this problem. Right now I have to open the document using Word Automation and print it using Adobe Distiller.

I created a sample application for you to test. It uses a Word Template with the first row set as “Repeat as header Row”.

When I save the document in Word format and open it using Microsoft Word, the header appears in every page. However, if I use Aspose.Words to either print it directly or save it to PDF using the SaveToPDF() method, the header row is lost.

Hi,

Thank you for additional information. Unfortunately, Heading rows are not supported during rendering and converting to PDF. I linked your request to the appropriate issue. You will be notified as soon as this feature is implemented.

Best regards.

Hi

I am having this problem too. Is there any estimate for a fixed date yet?

Hi

Thanks for your inquiry. Currently I cannot provide you any reliable estimate regarding this issue. You will be notified as soon as it is fixed.

Best regards,

Ok, can you elaborate on the reason for this fix taking so long? As you can see it was originally raised over a year and a half ago.

Is there some fundamental problem that is stopping you implementing this functionality? Getting header rows to repeat is a fairly standard feature of Word, and judging by the amount of time this issue has been around, it looks to me like you are having major problems implementing it.

Hi

Thanks for your inquiry. Yes, you are right regarding this feature, it is complex. However, this is not the main reason why it was postponed. We postponed it because currently we have to work on other very important features. I apologize for inconvenience.
This feature is scheduled on the beginning of the next year. You will be notified as soon as it is supported.

Best regards,

Thanks for your reply Andrey. As long as I know it will be done at some stage, thats fine for now.

Hello,

Is this feature still scheduled for the beginning of next year?

Regards,

Hello

Thanks for your request. This feature is still scheduled on the beginning of the next year. Your request has been linked to the appropriate issue. You will be notified as soon as it is supported.

Best regards,

This issue is causing significant difficulty for me as well. We use Aspose.Words as part of an automated process that produces and prints thousands of documents for our clients. Repeating table headers has become a requirement for many requested formats.At this point, due to this limitation, I am looking for alternatives. Resorting to Word automation is certainly not desirable but it looks as if I have no other options. Please advise when this has been addressed.

Thanks,

Mark

Hi Mark,

Thanks for your request. Current estimate is end of January or beginning of February.

Best regards.

The issues you have found earlier (filed as 6839) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(99)