pdfcrowd 4.8.0 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdfcrowd.rb +316 -73
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 115c1fddbe0db181bff579e1a43e000ee6c61745
4
- data.tar.gz: 7248fe5e8ffa0eb345cdb355a44f4f3fbddd2188
3
+ metadata.gz: da2eab2984b71724816f59b4e3949dd4b3b46bcc
4
+ data.tar.gz: 63fb92545c7e060e6cc703d8602882e38bfe2ff4
5
5
  SHA512:
6
- metadata.gz: 78f137f5635f672eff2cf35efdbf3524b1b16b537bbe6cd73eae273993d4de9fff98559ad934f3caf917cd9cce262c47e5028dfbe98b747565347584c537593f
7
- data.tar.gz: f5d85d580570928cf5c090689fe3873d302934a039e61586672062fe0769ffea99cfba237af8e1c28e68b92c69459646a7a57a17837914e5972e8b577f3a4a05
6
+ metadata.gz: 64698f11fa893488ce0bde1283125126834e7da76af977fb4475177da9d5f9bd024def184b85d2f6343cb03d38dc54170d8d10be50236c4c92723ad9c9aeaa01
7
+ data.tar.gz: 05906bef1471a980cc42893aec36bcbfa00077afb603fd3a5cae6c6ca818ddbe8240e3f0dcbf1f6fd4ed38dfdab2990b9dcdfd447a66831cdb9ef70b66575680
@@ -530,7 +530,7 @@ end
530
530
  module Pdfcrowd
531
531
  HOST = ENV["PDFCROWD_HOST"] || 'api.pdfcrowd.com'
532
532
  MULTIPART_BOUNDARY = '----------ThIs_Is_tHe_bOUnDary_$'
533
- CLIENT_VERSION = '4.8.0'
533
+ CLIENT_VERSION = '4.9.0'
534
534
 
535
535
  class ConnectionHelper
536
536
  def initialize(user_name, api_key)
@@ -541,7 +541,7 @@ module Pdfcrowd
541
541
 
542
542
  setProxy(nil, nil, nil, nil)
543
543
  setUseHttp(false)
544
- setUserAgent('pdfcrowd_ruby_client/4.8.0 (http://pdfcrowd.com)')
544
+ setUserAgent('pdfcrowd_ruby_client/4.9.0 (http://pdfcrowd.com)')
545
545
 
546
546
  @retry_count = 1
547
547
  end
@@ -1123,71 +1123,6 @@ module Pdfcrowd
1123
1123
  self
1124
1124
  end
1125
1125
 
1126
- # The page background color in RGB or RGBA hexadecimal format. The color fills the entire page regardless of the margins.
1127
- #
1128
- # * +page_background_color+ - The value must be in RRGGBB or RRGGBBAA hexadecimal format.
1129
- # * *Returns* - The converter object.
1130
- def setPageBackgroundColor(page_background_color)
1131
- unless /^[0-9a-fA-F]{6,8}$/.match(page_background_color)
1132
- raise Error.new(Pdfcrowd.create_invalid_value_message(page_background_color, "page_background_color", "html-to-pdf", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_page_background_color"), 470);
1133
- end
1134
-
1135
- @fields['page_background_color'] = page_background_color
1136
- self
1137
- end
1138
-
1139
- # Apply the first page of the watermark PDF to every page of the output PDF.
1140
- #
1141
- # * +page_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
1142
- # * *Returns* - The converter object.
1143
- def setPageWatermark(page_watermark)
1144
- if (!(File.file?(page_watermark) && !File.zero?(page_watermark)))
1145
- raise Error.new(Pdfcrowd.create_invalid_value_message(page_watermark, "page_watermark", "html-to-pdf", "The file must exist and not be empty.", "set_page_watermark"), 470);
1146
- end
1147
-
1148
- @files['page_watermark'] = page_watermark
1149
- self
1150
- end
1151
-
1152
- # Apply each page of the specified watermark PDF to the corresponding page of the output PDF.
1153
- #
1154
- # * +multipage_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
1155
- # * *Returns* - The converter object.
1156
- def setMultipageWatermark(multipage_watermark)
1157
- if (!(File.file?(multipage_watermark) && !File.zero?(multipage_watermark)))
1158
- raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_watermark, "multipage_watermark", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_watermark"), 470);
1159
- end
1160
-
1161
- @files['multipage_watermark'] = multipage_watermark
1162
- self
1163
- end
1164
-
1165
- # Apply the first page of the specified PDF to the background of every page of the output PDF.
1166
- #
1167
- # * +page_background+ - The file path to a local background PDF file. The file must exist and not be empty.
1168
- # * *Returns* - The converter object.
1169
- def setPageBackground(page_background)
1170
- if (!(File.file?(page_background) && !File.zero?(page_background)))
1171
- raise Error.new(Pdfcrowd.create_invalid_value_message(page_background, "page_background", "html-to-pdf", "The file must exist and not be empty.", "set_page_background"), 470);
1172
- end
1173
-
1174
- @files['page_background'] = page_background
1175
- self
1176
- end
1177
-
1178
- # Apply each page of the specified PDF to the background of the corresponding page of the output PDF.
1179
- #
1180
- # * +multipage_background+ - The file path to a local background PDF file. The file must exist and not be empty.
1181
- # * *Returns* - The converter object.
1182
- def setMultipageBackground(multipage_background)
1183
- if (!(File.file?(multipage_background) && !File.zero?(multipage_background)))
1184
- raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_background, "multipage_background", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_background"), 470);
1185
- end
1186
-
1187
- @files['multipage_background'] = multipage_background
1188
- self
1189
- end
1190
-
1191
1126
  # The page header is not printed on the specified pages.
1192
1127
  #
1193
1128
  # * +pages+ - List of physical page numbers. Negative numbers count backwards from the last page: -1 is the last page, -2 is the last but one page, and so on. A comma seperated list of page numbers.
@@ -1223,7 +1158,7 @@ module Pdfcrowd
1223
1158
  self
1224
1159
  end
1225
1160
 
1226
- # Set the top left X coordinate of the content area.
1161
+ # Set the top left X coordinate of the content area. It's relative to the top left X coordinate of the print area.
1227
1162
  #
1228
1163
  # * +content_area_x+ - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1229
1164
  # * *Returns* - The converter object.
@@ -1236,7 +1171,7 @@ module Pdfcrowd
1236
1171
  self
1237
1172
  end
1238
1173
 
1239
- # Set the top left Y coordinate of the content area.
1174
+ # Set the top left Y coordinate of the content area. It's relative to the top left Y coordinate of the print area.
1240
1175
  #
1241
1176
  # * +content_area_y+ - Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1242
1177
  # * *Returns* - The converter object.
@@ -1277,8 +1212,8 @@ module Pdfcrowd
1277
1212
 
1278
1213
  # Set the content area position and size. The content area enables to specify a web page area to be converted.
1279
1214
  #
1280
- # * +x+ - Set the top left X coordinate of the content area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1281
- # * +y+ - Set the top left Y coordinate of the content area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1215
+ # * +x+ - Set the top left X coordinate of the content area. It's relative to the top left X coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1216
+ # * +y+ - Set the top left Y coordinate of the content area. It's relative to the top left Y coordinate of the print area. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt). It may contain a negative value.
1282
1217
  # * +width+ - Set the width of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).
1283
1218
  # * +height+ - Set the height of the content area. It should be at least 1 inch. Can be specified in inches (in), millimeters (mm), centimeters (cm), or points (pt).
1284
1219
  # * *Returns* - The converter object.
@@ -1290,6 +1225,71 @@ module Pdfcrowd
1290
1225
  self
1291
1226
  end
1292
1227
 
1228
+ # Apply the first page of the watermark PDF to every page of the output PDF.
1229
+ #
1230
+ # * +page_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
1231
+ # * *Returns* - The converter object.
1232
+ def setPageWatermark(page_watermark)
1233
+ if (!(File.file?(page_watermark) && !File.zero?(page_watermark)))
1234
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_watermark, "page_watermark", "html-to-pdf", "The file must exist and not be empty.", "set_page_watermark"), 470);
1235
+ end
1236
+
1237
+ @files['page_watermark'] = page_watermark
1238
+ self
1239
+ end
1240
+
1241
+ # Apply each page of the specified watermark PDF to the corresponding page of the output PDF.
1242
+ #
1243
+ # * +multipage_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
1244
+ # * *Returns* - The converter object.
1245
+ def setMultipageWatermark(multipage_watermark)
1246
+ if (!(File.file?(multipage_watermark) && !File.zero?(multipage_watermark)))
1247
+ raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_watermark, "multipage_watermark", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_watermark"), 470);
1248
+ end
1249
+
1250
+ @files['multipage_watermark'] = multipage_watermark
1251
+ self
1252
+ end
1253
+
1254
+ # Apply the first page of the specified PDF to the background of every page of the output PDF.
1255
+ #
1256
+ # * +page_background+ - The file path to a local background PDF file. The file must exist and not be empty.
1257
+ # * *Returns* - The converter object.
1258
+ def setPageBackground(page_background)
1259
+ if (!(File.file?(page_background) && !File.zero?(page_background)))
1260
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_background, "page_background", "html-to-pdf", "The file must exist and not be empty.", "set_page_background"), 470);
1261
+ end
1262
+
1263
+ @files['page_background'] = page_background
1264
+ self
1265
+ end
1266
+
1267
+ # Apply each page of the specified PDF to the background of the corresponding page of the output PDF.
1268
+ #
1269
+ # * +multipage_background+ - The file path to a local background PDF file. The file must exist and not be empty.
1270
+ # * *Returns* - The converter object.
1271
+ def setMultipageBackground(multipage_background)
1272
+ if (!(File.file?(multipage_background) && !File.zero?(multipage_background)))
1273
+ raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_background, "multipage_background", "html-to-pdf", "The file must exist and not be empty.", "set_multipage_background"), 470);
1274
+ end
1275
+
1276
+ @files['multipage_background'] = multipage_background
1277
+ self
1278
+ end
1279
+
1280
+ # The page background color in RGB or RGBA hexadecimal format. The color fills the entire page regardless of the margins.
1281
+ #
1282
+ # * +page_background_color+ - The value must be in RRGGBB or RRGGBBAA hexadecimal format.
1283
+ # * *Returns* - The converter object.
1284
+ def setPageBackgroundColor(page_background_color)
1285
+ unless /^[0-9a-fA-F]{6,8}$/.match(page_background_color)
1286
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_background_color, "page_background_color", "html-to-pdf", "The value must be in RRGGBB or RRGGBBAA hexadecimal format.", "set_page_background_color"), 470);
1287
+ end
1288
+
1289
+ @fields['page_background_color'] = page_background_color
1290
+ self
1291
+ end
1292
+
1293
1293
  # Do not print the background graphics.
1294
1294
  #
1295
1295
  # * +no_background+ - Set to true to disable the background graphics.
@@ -1440,7 +1440,7 @@ module Pdfcrowd
1440
1440
  self
1441
1441
  end
1442
1442
 
1443
- # Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation. In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
1443
+ # Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
1444
1444
  #
1445
1445
  # * +on_load_javascript+ - A string containing a JavaScript code. The string must not be empty.
1446
1446
  # * *Returns* - The converter object.
@@ -2354,7 +2354,7 @@ module Pdfcrowd
2354
2354
  self
2355
2355
  end
2356
2356
 
2357
- # Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation. In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
2357
+ # Run a custom JavaScript right after the document is loaded. The script is intended for early DOM manipulation (add/remove elements, update CSS, ...). In addition to the standard browser APIs, the custom JavaScript code can use helper functions from our JavaScript library.
2358
2358
  #
2359
2359
  # * +on_load_javascript+ - A string containing a JavaScript code. The string must not be empty.
2360
2360
  # * *Returns* - The converter object.
@@ -2991,6 +2991,249 @@ module Pdfcrowd
2991
2991
  self
2992
2992
  end
2993
2993
 
2994
+ # Apply the first page of the watermark PDF to every page of the output PDF.
2995
+ #
2996
+ # * +page_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
2997
+ # * *Returns* - The converter object.
2998
+ def setPageWatermark(page_watermark)
2999
+ if (!(File.file?(page_watermark) && !File.zero?(page_watermark)))
3000
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_watermark, "page_watermark", "pdf-to-pdf", "The file must exist and not be empty.", "set_page_watermark"), 470);
3001
+ end
3002
+
3003
+ @files['page_watermark'] = page_watermark
3004
+ self
3005
+ end
3006
+
3007
+ # Apply each page of the specified watermark PDF to the corresponding page of the output PDF.
3008
+ #
3009
+ # * +multipage_watermark+ - The file path to a local watermark PDF file. The file must exist and not be empty.
3010
+ # * *Returns* - The converter object.
3011
+ def setMultipageWatermark(multipage_watermark)
3012
+ if (!(File.file?(multipage_watermark) && !File.zero?(multipage_watermark)))
3013
+ raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_watermark, "multipage_watermark", "pdf-to-pdf", "The file must exist and not be empty.", "set_multipage_watermark"), 470);
3014
+ end
3015
+
3016
+ @files['multipage_watermark'] = multipage_watermark
3017
+ self
3018
+ end
3019
+
3020
+ # Apply the first page of the specified PDF to the background of every page of the output PDF.
3021
+ #
3022
+ # * +page_background+ - The file path to a local background PDF file. The file must exist and not be empty.
3023
+ # * *Returns* - The converter object.
3024
+ def setPageBackground(page_background)
3025
+ if (!(File.file?(page_background) && !File.zero?(page_background)))
3026
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_background, "page_background", "pdf-to-pdf", "The file must exist and not be empty.", "set_page_background"), 470);
3027
+ end
3028
+
3029
+ @files['page_background'] = page_background
3030
+ self
3031
+ end
3032
+
3033
+ # Apply each page of the specified PDF to the background of the corresponding page of the output PDF.
3034
+ #
3035
+ # * +multipage_background+ - The file path to a local background PDF file. The file must exist and not be empty.
3036
+ # * *Returns* - The converter object.
3037
+ def setMultipageBackground(multipage_background)
3038
+ if (!(File.file?(multipage_background) && !File.zero?(multipage_background)))
3039
+ raise Error.new(Pdfcrowd.create_invalid_value_message(multipage_background, "multipage_background", "pdf-to-pdf", "The file must exist and not be empty.", "set_multipage_background"), 470);
3040
+ end
3041
+
3042
+ @files['multipage_background'] = multipage_background
3043
+ self
3044
+ end
3045
+
3046
+ # Create linearized PDF. This is also known as Fast Web View.
3047
+ #
3048
+ # * +linearize+ - Set to true to create linearized PDF.
3049
+ # * *Returns* - The converter object.
3050
+ def setLinearize(linearize)
3051
+ @fields['linearize'] = linearize
3052
+ self
3053
+ end
3054
+
3055
+ # Encrypt the PDF. This prevents search engines from indexing the contents.
3056
+ #
3057
+ # * +encrypt+ - Set to true to enable PDF encryption.
3058
+ # * *Returns* - The converter object.
3059
+ def setEncrypt(encrypt)
3060
+ @fields['encrypt'] = encrypt
3061
+ self
3062
+ end
3063
+
3064
+ # Protect the PDF with a user password. When a PDF has a user password, it must be supplied in order to view the document and to perform operations allowed by the access permissions.
3065
+ #
3066
+ # * +user_password+ - The user password.
3067
+ # * *Returns* - The converter object.
3068
+ def setUserPassword(user_password)
3069
+ @fields['user_password'] = user_password
3070
+ self
3071
+ end
3072
+
3073
+ # Protect the PDF with an owner password. Supplying an owner password grants unlimited access to the PDF including changing the passwords and access permissions.
3074
+ #
3075
+ # * +owner_password+ - The owner password.
3076
+ # * *Returns* - The converter object.
3077
+ def setOwnerPassword(owner_password)
3078
+ @fields['owner_password'] = owner_password
3079
+ self
3080
+ end
3081
+
3082
+ # Disallow printing of the output PDF.
3083
+ #
3084
+ # * +no_print+ - Set to true to set the no-print flag in the output PDF.
3085
+ # * *Returns* - The converter object.
3086
+ def setNoPrint(no_print)
3087
+ @fields['no_print'] = no_print
3088
+ self
3089
+ end
3090
+
3091
+ # Disallow modification of the ouput PDF.
3092
+ #
3093
+ # * +no_modify+ - Set to true to set the read-only only flag in the output PDF.
3094
+ # * *Returns* - The converter object.
3095
+ def setNoModify(no_modify)
3096
+ @fields['no_modify'] = no_modify
3097
+ self
3098
+ end
3099
+
3100
+ # Disallow text and graphics extraction from the output PDF.
3101
+ #
3102
+ # * +no_copy+ - Set to true to set the no-copy flag in the output PDF.
3103
+ # * *Returns* - The converter object.
3104
+ def setNoCopy(no_copy)
3105
+ @fields['no_copy'] = no_copy
3106
+ self
3107
+ end
3108
+
3109
+ # Specify the page layout to be used when the document is opened.
3110
+ #
3111
+ # * +page_layout+ - Allowed values are single-page, one-column, two-column-left, two-column-right.
3112
+ # * *Returns* - The converter object.
3113
+ def setPageLayout(page_layout)
3114
+ unless /(?i)^(single-page|one-column|two-column-left|two-column-right)$/.match(page_layout)
3115
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_layout, "page_layout", "pdf-to-pdf", "Allowed values are single-page, one-column, two-column-left, two-column-right.", "set_page_layout"), 470);
3116
+ end
3117
+
3118
+ @fields['page_layout'] = page_layout
3119
+ self
3120
+ end
3121
+
3122
+ # Specify how the document should be displayed when opened.
3123
+ #
3124
+ # * +page_mode+ - Allowed values are full-screen, thumbnails, outlines.
3125
+ # * *Returns* - The converter object.
3126
+ def setPageMode(page_mode)
3127
+ unless /(?i)^(full-screen|thumbnails|outlines)$/.match(page_mode)
3128
+ raise Error.new(Pdfcrowd.create_invalid_value_message(page_mode, "page_mode", "pdf-to-pdf", "Allowed values are full-screen, thumbnails, outlines.", "set_page_mode"), 470);
3129
+ end
3130
+
3131
+ @fields['page_mode'] = page_mode
3132
+ self
3133
+ end
3134
+
3135
+ # Specify how the page should be displayed when opened.
3136
+ #
3137
+ # * +initial_zoom_type+ - Allowed values are fit-width, fit-height, fit-page.
3138
+ # * *Returns* - The converter object.
3139
+ def setInitialZoomType(initial_zoom_type)
3140
+ unless /(?i)^(fit-width|fit-height|fit-page)$/.match(initial_zoom_type)
3141
+ raise Error.new(Pdfcrowd.create_invalid_value_message(initial_zoom_type, "initial_zoom_type", "pdf-to-pdf", "Allowed values are fit-width, fit-height, fit-page.", "set_initial_zoom_type"), 470);
3142
+ end
3143
+
3144
+ @fields['initial_zoom_type'] = initial_zoom_type
3145
+ self
3146
+ end
3147
+
3148
+ # Display the specified page when the document is opened.
3149
+ #
3150
+ # * +initial_page+ - Must be a positive integer number.
3151
+ # * *Returns* - The converter object.
3152
+ def setInitialPage(initial_page)
3153
+ if (!(Integer(initial_page) > 0))
3154
+ raise Error.new(Pdfcrowd.create_invalid_value_message(initial_page, "initial_page", "pdf-to-pdf", "Must be a positive integer number.", "set_initial_page"), 470);
3155
+ end
3156
+
3157
+ @fields['initial_page'] = initial_page
3158
+ self
3159
+ end
3160
+
3161
+ # Specify the initial page zoom in percents when the document is opened.
3162
+ #
3163
+ # * +initial_zoom+ - Must be a positive integer number.
3164
+ # * *Returns* - The converter object.
3165
+ def setInitialZoom(initial_zoom)
3166
+ if (!(Integer(initial_zoom) > 0))
3167
+ raise Error.new(Pdfcrowd.create_invalid_value_message(initial_zoom, "initial_zoom", "pdf-to-pdf", "Must be a positive integer number.", "set_initial_zoom"), 470);
3168
+ end
3169
+
3170
+ @fields['initial_zoom'] = initial_zoom
3171
+ self
3172
+ end
3173
+
3174
+ # Specify whether to hide the viewer application's tool bars when the document is active.
3175
+ #
3176
+ # * +hide_toolbar+ - Set to true to hide tool bars.
3177
+ # * *Returns* - The converter object.
3178
+ def setHideToolbar(hide_toolbar)
3179
+ @fields['hide_toolbar'] = hide_toolbar
3180
+ self
3181
+ end
3182
+
3183
+ # Specify whether to hide the viewer application's menu bar when the document is active.
3184
+ #
3185
+ # * +hide_menubar+ - Set to true to hide the menu bar.
3186
+ # * *Returns* - The converter object.
3187
+ def setHideMenubar(hide_menubar)
3188
+ @fields['hide_menubar'] = hide_menubar
3189
+ self
3190
+ end
3191
+
3192
+ # Specify whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed.
3193
+ #
3194
+ # * +hide_window_ui+ - Set to true to hide ui elements.
3195
+ # * *Returns* - The converter object.
3196
+ def setHideWindowUi(hide_window_ui)
3197
+ @fields['hide_window_ui'] = hide_window_ui
3198
+ self
3199
+ end
3200
+
3201
+ # Specify whether to resize the document's window to fit the size of the first displayed page.
3202
+ #
3203
+ # * +fit_window+ - Set to true to resize the window.
3204
+ # * *Returns* - The converter object.
3205
+ def setFitWindow(fit_window)
3206
+ @fields['fit_window'] = fit_window
3207
+ self
3208
+ end
3209
+
3210
+ # Specify whether to position the document's window in the center of the screen.
3211
+ #
3212
+ # * +center_window+ - Set to true to center the window.
3213
+ # * *Returns* - The converter object.
3214
+ def setCenterWindow(center_window)
3215
+ @fields['center_window'] = center_window
3216
+ self
3217
+ end
3218
+
3219
+ # Specify whether the window's title bar should display the document title. If false , the title bar should instead display the name of the PDF file containing the document.
3220
+ #
3221
+ # * +display_title+ - Set to true to display the title.
3222
+ # * *Returns* - The converter object.
3223
+ def setDisplayTitle(display_title)
3224
+ @fields['display_title'] = display_title
3225
+ self
3226
+ end
3227
+
3228
+ # Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up
3229
+ #
3230
+ # * +right_to_left+ - Set to true to set right-to-left reading order.
3231
+ # * *Returns* - The converter object.
3232
+ def setRightToLeft(right_to_left)
3233
+ @fields['right_to_left'] = right_to_left
3234
+ self
3235
+ end
3236
+
2994
3237
  # Turn on the debug logging. Details about the conversion are stored in the debug log. The URL of the log can be obtained from the getDebugLogUrl method or available in conversion statistics.
2995
3238
  #
2996
3239
  # * +debug_log+ - Set to true to enable the debug logging.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfcrowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.0
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pdfcrowd Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Pdfcrowd API lets you easily convert between HTML, PDF and various
14
14
  image formats.