[PR #1251] [MERGED] Add premium PDF/HTML export #1219

Closed
opened 2026-03-03 00:25:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/1251
Author: @Komediruzecki
Created: 10/3/2021
Status: Merged
Merged: 10/13/2021
Merged by: @Rokt33r

Base: masterHead: feature/add-pdf-export-preferences


📝 Commits (5)

  • 69d0a0d Add BOOST_PDF_EXPORT_BASE_URL env var
  • 509e40b Add export api
  • 026675d Remove printBackground option
  • ad7eeda Implement pdf export to doc context menu
  • 4cc6bf4 Add yes and no to translation

📊 Changes

13 files changed (+222 additions, -34 deletions)

View changed files

src/cloud/api/teams/docs/exports.ts (+72 -0)
📝 src/cloud/components/DocPage/DocContextMenuActions.tsx (+84 -30)
📝 src/cloud/lib/client.ts (+48 -1)
📝 src/cloud/lib/consts.ts (+2 -0)
📝 src/cloud/lib/i18n/enUS.ts (+3 -0)
📝 src/cloud/lib/i18n/fr.ts (+3 -0)
📝 src/cloud/lib/i18n/ja.ts (+3 -0)
📝 src/cloud/lib/i18n/types.ts (+3 -0)
📝 src/cloud/lib/i18n/zhCN.ts (+3 -0)
📝 src/cloud/lib/stores/electron.ts (+0 -1)
📝 src/lib/preferences.ts (+0 -1)
📝 src/locales/enUS.ts (+0 -1)
📝 webpack.cloud.config.ts (+1 -0)

📄 Description

Add handling of paid vs free users for export
Add API calls for PDF/HTML
Change Doc Context menu to call API on export

Fix title not being encoded
Add JSON optional API (for client calls)

Remove export procedures from cloud code

Update PDF export UI

Add spinner on loading the document from backend
Remove separation from web and desktop client when downloading PDF

Add PDF/HTML preferences

Add preference for printing PDF background
Add theme and markdown code block theme preference for exports API

Add PDF/HTML post API

Update APIs for PDF/HTML generation to use new POST API

Update code for new server API and token fetching

Showcase:
https://user-images.githubusercontent.com/18196945/134773925-b95483d4-ee92-45be-bcb0-3b54179ab6b3.mp4

Test:
WIth new server renderer and Boosthub token generator
Test exporting of PDF and HTML
Test exporting when token expires immediately (and with a timeout) - user gets message


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/1251 **Author:** [@Komediruzecki](https://github.com/Komediruzecki) **Created:** 10/3/2021 **Status:** ✅ Merged **Merged:** 10/13/2021 **Merged by:** [@Rokt33r](https://github.com/Rokt33r) **Base:** `master` ← **Head:** `feature/add-pdf-export-preferences` --- ### 📝 Commits (5) - [`69d0a0d`](https://github.com/BoostIO/BoostNote-App/commit/69d0a0da7137756fdc9ab7a0dadb66fe648a8f29) Add BOOST_PDF_EXPORT_BASE_URL env var - [`509e40b`](https://github.com/BoostIO/BoostNote-App/commit/509e40b745352eee052ab44b1f60ff58f9242b8c) Add export api - [`026675d`](https://github.com/BoostIO/BoostNote-App/commit/026675d9396e0d6be93c71ee9bc12e6de772cff0) Remove printBackground option - [`ad7eeda`](https://github.com/BoostIO/BoostNote-App/commit/ad7eeda6dc3ebe3f7bab9a2ae9c81b2547b126ec) Implement pdf export to doc context menu - [`4cc6bf4`](https://github.com/BoostIO/BoostNote-App/commit/4cc6bf4f0ec3cd1197bf49010669a071a75c518d) Add yes and no to translation ### 📊 Changes **13 files changed** (+222 additions, -34 deletions) <details> <summary>View changed files</summary> ➕ `src/cloud/api/teams/docs/exports.ts` (+72 -0) 📝 `src/cloud/components/DocPage/DocContextMenuActions.tsx` (+84 -30) 📝 `src/cloud/lib/client.ts` (+48 -1) 📝 `src/cloud/lib/consts.ts` (+2 -0) 📝 `src/cloud/lib/i18n/enUS.ts` (+3 -0) 📝 `src/cloud/lib/i18n/fr.ts` (+3 -0) 📝 `src/cloud/lib/i18n/ja.ts` (+3 -0) 📝 `src/cloud/lib/i18n/types.ts` (+3 -0) 📝 `src/cloud/lib/i18n/zhCN.ts` (+3 -0) 📝 `src/cloud/lib/stores/electron.ts` (+0 -1) 📝 `src/lib/preferences.ts` (+0 -1) 📝 `src/locales/enUS.ts` (+0 -1) 📝 `webpack.cloud.config.ts` (+1 -0) </details> ### 📄 Description Add handling of paid vs free users for export Add API calls for PDF/HTML Change Doc Context menu to call API on export Fix title not being encoded Add JSON optional API (for client calls) Remove export procedures from cloud code Update PDF export UI Add spinner on loading the document from backend Remove separation from web and desktop client when downloading PDF Add PDF/HTML preferences Add preference for printing PDF background Add theme and markdown code block theme preference for exports API Add PDF/HTML post API Update APIs for PDF/HTML generation to use new POST API Update code for new server API and token fetching Showcase: https://user-images.githubusercontent.com/18196945/134773925-b95483d4-ee92-45be-bcb0-3b54179ab6b3.mp4 Test: WIth new server renderer and Boosthub token generator Test exporting of PDF and HTML Test exporting when token expires immediately (and with a timeout) - user gets message --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:25:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#1219
No description provided.