MaxMelcher / AzureDevOps.WikiPDFExport

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

Images in Work Items are not rendered #48

Closed MaxMelcher closed 3 years ago

MaxMelcher commented 3 years ago
  1. have a field in a feature workitem ( releasenotetext), I have formatted text and also copied/pasted an image.
  2. pipeline that runas a query extract the text from the field and generates a markdown file and also generates a pdf file using the WikiPDFExporter
  3. inside the markdown file i have a link to the generated pdf file.
  4. When I click download the images are missing.

I can view the images inside the markdown, but they are not showing in the pdf, the link to the images are formatted as follows:

<img src="https://dev.azure.com/xxxxx/19388173-189a-4e34-b77d-81cf49dae506/_apis/wit/attachments/e1312dbb-b0dd-442a-b447-33621d949004?fileName=image.png"

thankyou

Originally posted by @kbilkhoo in https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/42#issuecomment-770875100

MaxMelcher commented 3 years ago

the images are attached to the workitem - to see them you need access to the work item. Try open the image link in an incognito browser window.

Potentially we could use an identity or PAT token to access the work item, not sure how much effort this is. Pull request would be very appreciated!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.