xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.77k stars 473 forks source link

Table of Contents is not Printed when converting to Pdf #376

Open tariva opened 4 years ago

tariva commented 4 years ago

When converting the doc with the table of contents and saving it as a Pdf the toc is not displayed. Is this a limitation of this lib?

XceedBoucherS commented 4 years ago

Hi, Can you explain in details the steps ? -"converting the doc"...to what ? -you add a table of content -you convert the doc with a table of content to PDF ? (a "Words for .NET" feature, which is not part of this DocX, or you use something else ?) -In the PDF, you can't see the Table of Content.

tariva commented 4 years ago

Hi, I create the TOC from Headings in my word document then I use the Words for .NET to save the word file as pdf. The TOC is missing in the pdf

I am sorry if this is the wrong channel for the issue

XceedBoucherS commented 4 years ago

Hi, So if I resume. You use MS Word to create a docx, add a TOC in it and save the docx. Then you use Words for .NET to convert the docx to PDF and the TOC is not present in PDF ?

If this is your situation, can you submit your docx so we can analyse it ? Thank you.