Boostnote: Print to PDF - Linked text not preserved

Created on 6 Sep 2018  路  4Comments  路  Source: BoostIO/Boostnote

Current behavior

Linking text in MD, e.g. [click here](https://google.com), renders fine in Boostnote, however when printing the document to PDF the link is not preserved (i.e. "click here" is no longer a clickable link).

Expected behavior

When exporting to PDF, linked text should be preserved.

Steps to reproduce

  1. Create a new note and paste "[Click here](https://google.com) to search with Google"
  2. File->Print, select Adobe PDF, and click Print (save to drive)
  3. Open the saved PDF and observe that there is no linked text in the output

Environment

  • Version : Boostnote 0.11.9
  • OS Version and name : Windows 10
  • Adobe Version: Adobe Acrobat Pro 2018.011.20058

Suggested solution

A dedicated export to PDF feature (rather than printing), or otherwise find a way somehow to fix it with the current printing approach.

At the moment, in order to share any notes with links I will need to rewrite any part referencing links. This is counter intuitive, since I make use of the great built-in feature that automatically brings in the web page title when pasting links.

bug funded on issuehunt improvement request

Most helpful comment

looks the issue has been resoved in v0.12. Linking text works as expected.

All 4 comments

Thank you for reporting!

It looks like it's possible to hook into Chromium's built-in print-to-pdf capabilities via WebContents.printToPDF, which should preserve the links. I wasn't able to figure out how to get a WebContents instance from this.refs.root.contentWindow though.

@boostio funded this issue with $30. See it on IssueHunt

looks the issue has been resoved in v0.12. Linking text works as expected.

Was this page helpful?
0 / 5 - 0 ratings