Skip to content

Instantly share code, notes, and snippets.

@mojavelinux
Last active August 29, 2015 14:27
Show Gist options
  • Save mojavelinux/95fade7b8dfc24e3b4da to your computer and use it in GitHub Desktop.
Save mojavelinux/95fade7b8dfc24e3b4da to your computer and use it in GitHub Desktop.
Test files for Asciidoctor PDF #303
= Document Title
Doc Writer <doc@example.com>
:doctype: book
:source-highlighter: coderay
:listing-caption: Listing
// Uncomment next line to set page size (default is Letter)
//:pdf-page-size: A4
A simple http://asciidoc.org[AsciiDoc] document.
== Introduction
A paragraph followed by a simple list with square bullets.
[square]
* item 1
* item 2
Here's how you say "`Hello, World!`" in Prawn:
.Create a basic PDF document using Prawn
[source,ruby]
----
require 'prawn'
Prawn::Document.generate 'example.pdf' do
text 'Hello, World!'
end
----
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment