All Projects → ganeshh123 → Notion Pdf Export

ganeshh123 / Notion Pdf Export

Licence: mit
A tool to allow batch PDF export for free Notion users. You can export as HTML and then use this tool to convert those into PDFs.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Notion Pdf Export

Report
Report management package in PHP that aims to help you export information in a variety of formats
Stars: ✭ 125 (+89.39%)
Mutual labels:  export, pdf, pdf-generation
Satysfi
A statically-typed, functional typesetting system
Stars: ✭ 815 (+1134.85%)
Mutual labels:  pdf, pdf-generation
Itext7 Dotnet
iText 7 for .NET is the .NET version of the iText 7 library, formerly known as iTextSharp, which it replaces. iText 7 represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 698 (+957.58%)
Mutual labels:  pdf, pdf-generation
Openhtmltopdf
An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
Stars: ✭ 1,096 (+1560.61%)
Mutual labels:  pdf, pdf-generation
Pikepdf
A Python library for reading and writing PDF, powered by qpdf
Stars: ✭ 566 (+757.58%)
Mutual labels:  pdf, pdf-generation
Clj Pdf
PDF generation library for Clojure
Stars: ✭ 571 (+765.15%)
Mutual labels:  pdf, pdf-generation
Hexapdf
Versatile PDF creation and manipulation for Ruby
Stars: ✭ 852 (+1190.91%)
Mutual labels:  pdf, pdf-generation
One File Pdf
A minimalist Go PDF writer in 1982 lines. Draws text, images and shapes. Helps understand the PDF format. Used in production for reports.
Stars: ✭ 429 (+550%)
Mutual labels:  pdf, pdf-generation
Html Pdf Service
LGPL V3. Java Spring Boot microservice with RESTful webconsole and service endpoints that convert HTML to PDF, optionally styling with CSS and templating with JSON using Flying Saucer, PDF Box and Jackson libraries. Available on Docker Hub.
Stars: ✭ 12 (-81.82%)
Mutual labels:  pdf, pdf-generation
Mapbox Gl Print Export For Port
Print/Export for Mapbox GL
Stars: ✭ 14 (-78.79%)
Mutual labels:  export, pdf
Alivepdf
[Official AlivePDF] - AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR
Stars: ✭ 29 (-56.06%)
Mutual labels:  pdf, pdf-generation
Combine pdf
A Pure ruby library to merge PDF files, number pages and maybe more...
Stars: ✭ 552 (+736.36%)
Mutual labels:  pdf, pdf-generation
Dart pdf
Pdf creation module for dart/flutter
Stars: ✭ 500 (+657.58%)
Mutual labels:  pdf, pdf-generation
Html Pdf Chrome
HTML to PDF converter via Chrome/Chromium
Stars: ✭ 629 (+853.03%)
Mutual labels:  pdf, pdf-generation
Printable Mockups
Create printable UI mockups & wireframes templates
Stars: ✭ 479 (+625.76%)
Mutual labels:  pdf, pdf-generation
Itext7
iText 7 for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText 7 can be a boon to nearly every workflow.
Stars: ✭ 913 (+1283.33%)
Mutual labels:  pdf, pdf-generation
Pdfsave
Convert websites into readable PDFs
Stars: ✭ 46 (-30.3%)
Mutual labels:  pdf, pdf-generation
Rst2pdf
Use a text editor. Make a PDF.
Stars: ✭ 404 (+512.12%)
Mutual labels:  pdf, pdf-generation
Printpdf
An easy-to-use library for writing PDF in Rust
Stars: ✭ 404 (+512.12%)
Mutual labels:  pdf, pdf-generation
Asciidoctor Pdf
📃 Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
Stars: ✭ 868 (+1215.15%)
Mutual labels:  pdf, pdf-generation

Notion PDF Export

A tool to allow batch PDF export for free Notion users. You can export as HTML with subpages and then use this tool to convert those into PDFs.

Download

Get the latest download for Windows and Mac from the releases page:

https://github.com/ganeshh123/notion-pdf-export/releases

Download for Windows

Download for Mac

Usage

video guide Video Guide

  1. Download the tool and extract.

    downloaded_program

  2. In Notion, place all the pages you wish to export into one page and click Export, choose 'HTML' and ensure 'Include Subpages' is on.

    notion-export

  3. Extract the export to find a list of HTML files and folders for each page. Place the HTML files with folders containing images in the same folder as 'notion-pdf-export.exe' (Windows) or 'notion-pdf-export' (Mac).

    placing-markdown-files

  4. Double Click 'notion-pdf-export.exe' (Windows) or 'notion-pdf-export' (Mac) and wait for the process to be completed.

    running-program

  5. All the individual pages can be found converted into PDF Documents inside the pdfs folder.

    created_pdfs


Building

Running the Project on Node

  1. Clone/Download the project and run the command in the project root directory:

    npm install
    
  2. Run this command to run the script:

    node index.js
    

Compiling an Executable

This is tricky. A lot of adjustments had to be made so that it can run without node.

Installing nexe

Executables are compiled with a very specific version of nexe that allows access to the filesystem, which has a tricky setup procedure.

To install automatically:

Run install_nexe_win.bat as admin on Windows, will take about 5 minutes to install fully.

Or

Run install_nexe_mac on Mac, will take about 5 minutes to install, and you will need to enter password. This sometimes doesn't seem to work properly, so might be worth doing manual install if there's problems.

Alternatively, install manually like this:

  1. Firstly, install the general nexe globally with the command:

    npm install -g nexe
    

    In Windows with Command Prompt running as Admin. Or:

    sudo npm install -g nexe
    

    In Mac in the terminal

  2. In the project root folder build some executables with this version of nexe to download node binaries for Windows and Mac:

    nexe . --target win32-x86-10.13.0
    nexe . -t macos-10.13.0
    

    This will download the binaries we need for later, delete the executables built with this for now.

  3. Now we need to install a specific version of nexe that allows access to the filesystem:

    Run the command:

    npm install -g cspotcode/nexe#19a5046
    

    In Windows with Command Prompt running as Admin. Or:

    sudo npm install -g cspotcode/nexe#19a5046
    

Now we should have the correct version of nexe for building.

Confirm by running:

nexe -v

nexe-version

Check that the version is 4.0.0-beta.4

Compiling Executables

To Compile Automatically

Run build_win32.bat on Windows to build a Windows Executable. This can be found in /dist/win32 and everything in that folder must be distributed together.

Run build_macos on Mac to build a Mac Executable. This can be found in /dist/macos and everything in that folder must be distributed together.

If you wish to compile for Mac on Windows or Vice Versa, you can do so using the manual method below. This is trickier and will require obtaining a phantomjs binary built for the desired platform and placing it in the correct place.

To Compile Manually

To build a Windows Executable, run the command:

nexe . --target win32-x86-10.13.0 -o ./dist/win32/notion-pdf-export.exe

in the root directory of the project.

To build a Mac executable, run the command:

nexe . -t macos-10.13.0 -o ./dist/macos/npe

in the root directory of the project. Note that this is built under the name 'npe' which is done for a reason.

To distribute the Windows Executable, place it in a directory with the following:

  • The original 'utils' folder from the source code

To distribute the Mac Executable (npe), place it in a directorywith the following:

  • The original 'utils' folder from the source code

  • An executable unix shell script with the following contents, called 'notion-pdf-export':

    #/bin/bash
    cd "$0"/..
    ./npe
    

    This can be obtained from 'mac_script.sh' or found inside /dist/macos

Credits

Notion Icon by Alex Martinov on Iconscout

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].