Skip to content

Commit

Permalink
Added support for prince_options[debug].
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-o-matic committed Mar 11, 2016
1 parent 3f4cf46 commit 3ad8675
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docraptor.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
swagger: '2.0'

info:
version: "0.0.1"
version: "1.1.0"
title: DocRaptor v1

host: docraptor.com
Expand Down Expand Up @@ -277,6 +277,9 @@ definitions:
disallow_modify:
type: boolean
description: Disallow modification of this PDF.
debug:
type: boolean
description: Enable Prince debug mode.
input:
type: string
description: Specify the input format.
Expand Down
13 changes: 12 additions & 1 deletion lib/docraptor/models/prince_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class PrinceOptions
# Disallow modification of this PDF.
attr_accessor :disallow_modify

# Enable Prince debug mode.
attr_accessor :debug

# Specify the input format.
attr_accessor :input

Expand Down Expand Up @@ -131,6 +134,8 @@ def self.attribute_map

:'disallow_modify' => :'disallow_modify',

:'debug' => :'debug',

:'input' => :'input',

:'version' => :'version',
Expand Down Expand Up @@ -169,6 +174,7 @@ def self.swagger_types
:'disallow_copy' => :'BOOLEAN',
:'disallow_annotate' => :'BOOLEAN',
:'disallow_modify' => :'BOOLEAN',
:'debug' => :'BOOLEAN',
:'input' => :'String',
:'version' => :'String',
:'javascript' => :'BOOLEAN',
Expand Down Expand Up @@ -275,6 +281,10 @@ def initialize(attributes = {})
self.disallow_modify = attributes[:'disallow_modify']
end

if attributes[:'debug']
self.debug = attributes[:'debug']
end

if attributes[:'input']
self.input = attributes[:'input']
else
Expand Down Expand Up @@ -334,6 +344,7 @@ def ==(o)
disallow_copy == o.disallow_copy &&
disallow_annotate == o.disallow_annotate &&
disallow_modify == o.disallow_modify &&
debug == o.debug &&
input == o.input &&
version == o.version &&
javascript == o.javascript &&
Expand All @@ -348,7 +359,7 @@ def eql?(o)

# Calculate hash code according to all attributes.
def hash
[baseurl, no_xinclude, no_network, http_user, http_password, http_proxy, http_timeout, insecure, media, no_author_style, no_default_style, no_embed_fonts, no_subset_fonts, no_compress, encrypt, key_bits, user_password, owner_password, disallow_print, disallow_copy, disallow_annotate, disallow_modify, input, version, javascript, css_dpi, profile].hash
[baseurl, no_xinclude, no_network, http_user, http_password, http_proxy, http_timeout, insecure, media, no_author_style, no_default_style, no_embed_fonts, no_subset_fonts, no_compress, encrypt, key_bits, user_password, owner_password, disallow_print, disallow_copy, disallow_annotate, disallow_modify, debug, input, version, javascript, css_dpi, profile].hash
end

# build the object from hash
Expand Down

0 comments on commit 3ad8675

Please sign in to comment.