MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
186 stars 62 forks source link

Using images in headers and footers html #111

Closed PBoog closed 2 years ago

PBoog commented 2 years ago

Is it possible to reference an image from the .attachments directory in the header and footer html? I have tried a few options but so far no luck. Ideally this should work on the same path that is used in the markdown files. For example: <img alt="logo" href="/.attachments/logo.png">

Maybe I'm missing something ;)

MaxMelcher commented 2 years ago

No, I doubt that this works locally because the rendering engine does not support it. You can data encode the image and put it in your html template, eg with this website https://www.base64-image.de

Let me know if that works

Get Outlook for iOShttps://aka.ms/o0ukef


From: Pieter Boogaerts @.> Sent: Thursday, June 16, 2022 12:59:44 PM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Subscribed @.***> Subject: [MaxMelcher/AzureDevOps.WikiPDFExport] Using images in headers and footers html (Issue #111)

Is it possible to reference an image from the .attachments directory in the header and footer html? I have tried a few options but so far no luck. Ideally this should work on the same path that is used in the markdown files. For example:

logo

Maybe I'm missing something ;)

— Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/111, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LN2BCCTEKD3FGW6J4YLVPMCKBANCNFSM5Y6MS6JA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

PBoog commented 2 years ago

That works like a charm, thanks!