MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
193 stars 65 forks source link

Allow a header page before the global table of contents page in the exported pdf file #129

Closed sachinchitran closed 1 year ago

sachinchitran commented 2 years ago

When I try to export the wiki markdown files (with the global table of contents argument), the resulting PDF file shows the table of contents as the first page. I looked through the code and understand that the toc md file gets added to the top of the list of md files before the pdf conversion. Is it possible to have an option to choose an md file as the first page so that I do not have the table of contents as the first page?

azuredevops-export-wiki -o "ReleaseNotes_20221012.1.pdf" --header-template-path "header.html" --footer-template-path "footer.html" --css "styles.css" --globaltoc "Table of contents" -v

minik42 commented 1 year ago

That should work now, try using --GlobalTOCPosition parameter

MaxMelcher commented 1 year ago

please try @minik42 solution or let us know if that is not working for you.