You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, currently the way to open local files is using a relative path and omitting the baseURL parameter #466 and #467 but, it doesn't work. WeasyPrint uses always the URI action and many viewers are not able to open the files (Foxit Reader, MacOS Preview) and in the case of Acrobat Reader the user have to accept to warnings before accessing to the file.
Yes, it only works with PDF files. Cairo uses the "GoToR" action, not "Launch" for that.
If the feature is not in Cairo, I'm afraid we can't do anything… I didn't know that it doesn't work for many PDF readers, because it perfectly works for mine (Evince).
As there's no solution, I think that I can close this issue. Please let me know if there's a way to do this, other than using something different from Cairo.
As far as I know, currently the way to open local files is using a relative path and omitting the baseURL parameter #466 and #467 but, it doesn't work. WeasyPrint uses always the URI action and many viewers are not able to open the files (Foxit Reader, MacOS Preview) and in the case of Acrobat Reader the user have to accept to warnings before accessing to the file.
WeasyPrint/weasyprint/document.py
Line 559 in 023a9f1
According to the standard the right way to open a local files is using the Launch action:
Cairo also support this option with File Links https://www.cairographics.org/manual/cairo-Tags-and-Links.html#file-link
I don't know enough about the WeasyPrint code-base to propose a solution but I would like to hear some opinions and ideas.
Regards,
The text was updated successfully, but these errors were encountered: