-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embed media as file annotation #51
base: master
Are you sure you want to change the base?
Conversation
if($AUTH >= AUTH_READ && $confAttachment) { | ||
$file = mediaFN($src); | ||
$filename = basename($file); | ||
$out .= "<annotation file=\"".htmlspecialchars($file)."\" content=\"".htmlspecialchars($title)."\" icon=\"Paperclip\" title=\"Anhang: ".htmlspecialchars($filename)."\"/> "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an untranslated "Anhang" in there.
Can you explain what this is supposed to do? From the settings it seems it should work on linked media files only but the code seems to run for embedded images as well? |
Thanks for pointing out the missing translation. This is fixed now. This patch is supposed to attach every media file where dokuwiki would create a media link, currently these are mostly pdf files in my wiki. This does (at least in my wiki) not include images that get inlined into the page - they are already handled by dw2pdf. |
Todo:
Questions:
|
To answer your first question: yes it's possible media files can leak through cached PDFs. That's what the nocache option is for (and it's mentioned in it's description). Might be worth to make that more clear on the wiki page? |
Hi,
these changes let dw2pdf optionally embed media files in the pdf output.
Regards,