Coder Social home page Coder Social logo

kirby_to_pdf's Introduction

PDF maker based on Kirby and Prince XML. Used once in production, but surely requires a bit more love to be used as a real starting point.

#Kirby

Kirby is a file-based CMS. Easy to setup. Easy to use. Flexible as hell. Using Kirby in web production requires a valid licence.

#Footnotes

There's a shortcode for creating footnotes. Just write:

(fn: The text of the footnote)

straight in your markdown. Footnotes will appear in the web version as inlined with the text. They will be sent to the bottom of the page when generating the PDF. Also, footnotes count restartes at each new part.

#Table of content

A table of content will be automatically built on page 2. It will take all the different parts titles and add the page numbers. Also, page numbers will be added automatically.

#Cover

Just select a background image and a logo on the 'home' page in the panel.

#Generating the PDF

First, install Prince XML. Then fire up the Terminal and navigate to where you want the PDF to be. The web version of your document needs to be open in your browser. If you're using Kirby locally:

$ prince http://localhost:8000 -o name_of_pdf.pdf 

And if you're using Javascript:

prince http://localhost:8000 --javascript -o name_of_pdf.pdf

If you're using the free version of Prince, you'll have a watermark at the top right. You can take it off by opening the generated PDF in Chrome and then Print / Download as PDF.

kirby_to_pdf's People

Contributors

tart2000 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.