[{"id":19,"target":"pdf","category":"document","options":{"version":{"type":"string","enum":["1.4","1.5","1.6","1.7","2.0"],"description":"Selects the PDF version of the converted file"},"images_quality":{"type":"integer","minimum":10,"maximum":100,"description":"The quality of the embedded images (range from 10 to 100). 100 is the highest quality."},"dpi":{"type":"integer","minimum":10,"maximum":1200,"description":"Horizontal and vertical density of images inside the document (referred to as DPI)"},"rasterize_dpi":{"type":"integer","minimum":10,"maximum":1200,"description":"The resulting document will contain images of the pages that have non-selectable text only. They will have the specified DPI value."},"quality":{"type":"string","description":"Optimizes the output for a specific target which will produce different output file sizes. It may override other quality options.","enum":["screen","ebook","default","printer","prepress","minimum","insane"]},"compression":{"type":"string","description":"Selects the compression level of the converted file","enum":["basic","strong"]},"file_size":{"type":"integer","minimum":1,"maximum":1048576,"description":"Limit the target size of the file you want to convert to PDF to this size in Kbytes (KiB). We try to do our best to achieve this limit as close as possible."},"color":{"type":"string","description":"The color schema","enum":["rgb","cmyk","gray"]},"new_owner_password":{"type":"string","pattern":"^[\\w\\W]{0,64}$","description":"Adds or changes the owner's password (up to 64 characters)"},"new_user_password":{"type":"string","pattern":"^[\\w\\W]{0,64}$","description":"Adds or changes the user's password (up to 64 characters)"},"allow_printing":{"type":"boolean","description":"Allows printing of the document"},"allow_copying":{"type":"boolean","description":"Allows copying of the document"},"allow_modification":{"type":"boolean","description":"Allows modification of the document"},"page_size":{"type":"string","description":"The size of the pages","enum":["a0","a1","a2","a3","a4","a4small","a5","a6","a7","a8","a9","a10","isob0","isob1","isob2","isob3","isob4","isob5","isob6","c0","c1","c2","c3","c4","c5","c6","11x17","ledger","legal","letter","lettersmall","archA","archB","archC","archD","archE","jisb0","jisb1","jisb2","jisb3","jisb4","jisb5","jisb6","b0","b1","b2","b3","b4","b5","flsa","flse","halfletter","hagaki"]},"orientation":{"type":"string","description":"The page's orientation","enum":["portrait","landscape"]},"border_unit":{"type":"string","description":"The unit of measurement to apply to the border options","enum":["mm","cm","in","pt"]},"border_top":{"type":"number","description":"The page's top border in the unit specified by border_unit"},"border_bottom":{"type":"number","description":"The page's bottom border in the unit specified by border_unit"},"border_left":{"type":"number","description":"The page's left border in the unit specified by border_unit"},"border_right":{"type":"number","description":"The page's right border in the unit specified by border_unit"},"custom_page_size_width":{"type":"string","description":"The width of the pages. The unit has to be specified in the custom_page_size_unit field. For best precision if using inchs, please use 4 decimal digits."},"custom_page_size_height":{"type":"string","description":"The height of the pages. The unit has to be specified in the custom_page_size_unit field. For best precision if using inchs, please use 4 decimal digits."},"custom_page_size_unit":{"type":"string","description":"The unit of measurement of the pages.","enum":["mm","in"]},"one_file_per_page":{"type":"boolean","description":"If set, the original document is split in more PDF files, one per page"},"rotate":{"type":"array","additionalProperties":false,"pages":{"type":"string","pattern":"^(((\\d+|first)-?(\\d*|last))|(first)|(last)|(even)|(odd))(, ?(((\\d+|first)-?(\\d*|last))|(first)|(last)|(even)|(odd)))*$","description":"The page numbers to be rotated. E.g. 5-8 or 5- or 5. It also accepts \"first\" and \"last\" aliases.","default":"1-last","required":true},"angle":{"type":"integer","description":"The angle by which to rotate the pages","enum":[0,90,180,270],"default":0,"required":true}},"rearrange":{"type":"string","pattern":"^(((\\d+|first)-?(\\d*|last))|(first)|(last)|(even)|(odd))(, ?(((\\d+|first)-?(\\d*|last))|(first)|(last)|(even)|(odd)))*$","description":"The page numbers that should be present in the converted file, in the desired order. This is also used to delete pages or extract a set of pages."},"split":{"type":"string","pattern":"^((\\d+-?\\d*)(, ?(\\d+-?\\d*))*|all)$","description":"The pages where to split the original file. E.g. in a 30 pages document, an entry of 10,20 will results in three output files with pages 1-10, 11-20, 21-30. It also accepts \"all\" to split all pages into separate files."},"split_page_x":{"type":"integer","minimum":2,"maximum":50,"description":"Split all the PDF pages in the specified number of parts along the horizontal axis. E.g. from one A4 landscape page to two A5 portrait pages."},"split_page_y":{"type":"integer","minimum":2,"maximum":50,"description":"Split all the PDF pages in the specified number of parts along the vertical axis. E.g. from one A4 portrait page to two A5 landscape pages."},"merge":{"type":"boolean","description":"Merges the input files in one output file using the same order as the files appear in the input section of the message."},"stamp":{"type":"boolean","description":"Insert the first page of the second input as a stamp into each page of the first input."},"watermark":{"type":"boolean","description":"Insert the first page of the second input as a watermark into each page of the first input."},"grayscale":{"type":"boolean","description":"Grayscale all images inside the PDF"},"deskew":{"type":"boolean","description":"Deskew a PDF created with a scanner not correctly aligned with the original document"},"linearize":{"type":"boolean","default":false,"description":"Optimizes the converted file for web visualization"},"patch":{"type":"object"},"filters":{"type":"array","additionalProperties":false,"filter_name":{"type":"string","enum":["remove_images","remove_text","remove_vectors"],"description":"The name of the filter to apply."}},"download_password":{"type":"string","pattern":"^[ -~]{0,1000}$","example":"secret_password","description":"A password to protect the download. To download the file send the password in the x-oc-download-password header or set a cookie named x-oc-download-password.  The value contains a comma separated list of passwords."},"allow_multiple_outputs":{"type":"boolean","default":false,"description":"If the conversion produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file."},"allow_multiple_outputs_threshold":{"type":"integer","minimum":2,"maximum":400,"description":"Sets the threshold for the number of output files during conversion. This option is considered only when `allow_multiple_outputs` is set to true. If the generated output files exceed this threshold, they are compressed into one file. Conversely, if the threshold is not met, each output file remains uncompressed."},"preset":{"type":"string","pattern":"^[\\w\\W]{1,255}$","description":"Predefined options"},"output_filename":{"type":"string","pattern":"^[\\w\\W]{0,255}$","example":"my_base_filename_without_extension","description":"The desired file name of the converted file WITHOUT the file extension."},"ocr":{"type":"boolean","description":"Optical character recognition"},"language":{"type":"string","pattern":"^[a-zA-Z_,-]{3,128}$","description":"Language for the source (using ISO 639-2\/T standard). In case of multi language documents, a comma separated list of values without quotes or spaces can be used. Please note that both plain and script languages cannot be included at the same time. Supported values are: afr, amh, ara, asm, aze, aze_cyrl, bel, ben, bod, bos, bre, bul, cat, ceb, ces, chi_sim, chi_sim_vert, chi_tra, chi_tra_vert, chr, cos, cym, dan, deu, div, dzo, ell, eng, enm, epo, est, eus, fao, fas, fil, fin, fra, frk, frm, fry, gla, gle, glg, grc, guj, hat, heb, hin, hrv, hun, hye, iku, ind, isl, ita, ita_old, jav, jpn, jpn_vert, kan, kat, kat_old, kaz, khm, kir, kmr, kor, kor_vert, lao, lat, lav, lit, ltz, mal, mar, mkd, mlt, mon, mri, msa, mya, nep, nld, nor, oci, ori, pan, pol, por, pus, que, ron, rus, san, sin, slk, slv, snd, spa, spa_old, sqi, srp, srp_latn, sun, swa, swe, syr, tam, tat, tel, tgk, tha, tir, ton, tur, uig, ukr, urd, uzb, uzb_cyrl, vie, yid, yor, script-Arabic, script-Armenian, script-Bengali, script-Canadian_Aboriginal, script-Cherokee, script-Cyrillic, script-Devanagari, script-Ethiopic, script-Fraktur, script-Georgian, script-Greek, script-Gujarati, script-Gurmukhi, script-Hangul, script-Hangul_vert, script-HanS, script-HanS_vert, script-HanT, script-HanT_vert, script-Hebrew, script-Japanese, script-Japanese_vert, script-Kannada, script-Khmer, script-Lao, script-Latin, script-Malayalam, script-Myanmar, script-Oriya, script-Sinhala, script-Syriac, script-Tamil, script-Telugu, script-Thaana, script-Thai, script-Tibetan, script-Vietnamese","example":"rus,eng,deu"},"ocr_filter":{"type":"string","enum":["gray"],"description":"Apply a filter to the input file. It may improve text detection."},"ocr_filter_options":{"description":"Object containing specific filter options."},"ocr_page_structure":{"type":"string","enum":["auto","osd_only","raw_line","single_char","single_column","single_line","single_word","sparse_text","sparse_text_osd","uniform_block_vertical","uniform_text","unstructured"],"description":"Page structure description to the OCR engine. It may help to have a better result. If your first attempt with automatic page structure detection fails or if you know in advance the structure of your pages, you can try with a more specific one."},"language_stt":{"type":"string","enum":["ar-AR","ca-ES","zh-CN","cs-CZ","de-DE","el-GR","en-IN","en-US","es-ES","fa-IR","fr-FR","hi-IN","it-IT","ja-JP","kk-KZ","nl-NL","pl-PL","pt-FB","sv-SE","ru-RU","tl-PH","tr-TR","uk-UA","vi-VN"],"description":"Language of the audio source"}}},{"id":31,"target":"pdf","category":"ebook","options":{"reader":{"type":"string","description":"Choose a target ebook reader for better compatibilty","enum":["default","Apple iPad","Apple iPad 3","Cybook 3","Cybook Opus","Ectaco jetBook","Galaxy","Generic e-ink","Generic HD e-ink","Generic large e-ink","Hanlin V3","Hanlin V5","iLiad","IrexDR800","IrexDR1000","jetBook","Kindle","Kindle DX","Kindle Fire","Kindle Oasis","Kindle Paperwhite","Kindle Paperwhite 3","Kindle Voyage","Kobo","Mobipocket","MS Reader","Nook","Nook Color","Nook HD Plus","Pocketbook 900","Pocketbook Pro 912","Pocketbook InkPad 3","Pocketbook InkPad Lux","Pocketbook InkPad HD","Sony","Sony 300","Sony 900","Sony Landscape","Sony T3","Tablet"]},"pdf_page_margin_bottom":{"type":"number","minimum":0,"maximum":10000,"description":"The size of the bottom page margin, in pts. Default is 72pt. Overrides the common bottom page margin setting, unless set to zero."},"pdf_page_margin_left":{"type":"number","minimum":0,"maximum":10000,"description":"The size of the left page margin, in pts. Default is 72pt. Overrides the common left page margin setting, unless set to zero."},"pdf_page_margin_right":{"type":"number","minimum":0,"maximum":10000,"description":"The size of the right page margin, in pts. Default is 72pt. Overrides the common right page margin setting, unless set to zero."},"pdf_page_margin_top":{"type":"number","minimum":0,"maximum":10000,"description":"The size of the top page margin, in pts. Default is 72pt. Overrides the common top page margin setting, unless set to zero."},"pdf_default_font_size":{"type":"number","minimum":4,"maximum":1000,"description":"The default font size (in pixels)"},"paper_size":{"type":"string","description":"The size of the paper. Default is letter.","enum":["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"]},"pdf_add_toc":{"type":"boolean","description":"Adds a Table of Contents at the end of the PDF that lists page numbers."},"pdf_no_cover":{"type":"boolean","description":"Do not insert the book cover as an image at the start of the document."},"download_password":{"type":"string","pattern":"^[ -~]{0,1000}$","example":"secret_password","description":"A password to protect the download. To download the file send the password in the x-oc-download-password header or set a cookie named x-oc-download-password.  The value contains a comma separated list of passwords."},"allow_multiple_outputs":{"type":"boolean","default":false,"description":"If the conversion produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file."},"allow_multiple_outputs_threshold":{"type":"integer","minimum":2,"maximum":400,"description":"Sets the threshold for the number of output files during conversion. This option is considered only when `allow_multiple_outputs` is set to true. If the generated output files exceed this threshold, they are compressed into one file. Conversely, if the threshold is not met, each output file remains uncompressed."},"preset":{"type":"string","pattern":"^[\\w\\W]{1,255}$","description":"Predefined options"},"output_filename":{"type":"string","pattern":"^[\\w\\W]{0,255}$","example":"my_base_filename_without_extension","description":"The desired file name of the converted file WITHOUT the file extension."},"title":{"type":"string","pattern":"^[\\w\\W]{0,512}$","description":"Change ebook title (up to 512 characters)"},"author":{"type":"string","pattern":"^[\\w\\W]{0,512}$","description":"Change ebook author (up to 512 characters)"},"border":{"type":"integer","minimum":0,"maximum":20,"description":"Add border in centimeters"},"encoding":{"type":"string","description":"Change the input encoding","enum":["ascii","cp1250","cp1251","cp1252","cp1253","cp1254","cp1257","iso8859_1","iso8859_2","iso8859_4","iso8859_5","iso8859_7","iso8859_9","iso8859_13","iso8859_15","koi8_r","utf8","utf-16","euc_jp","sjis","iso2022jp","gbk","iscii91","big5","tis620","gb2312","ISO-2022-KR"]},"ascii":{"type":"boolean","default":false,"description":"ASCII output"},"enable_heuristics":{"type":"boolean","default":false,"description":"Enable heuristic processing"},"embed_font":{"type":"string","description":"Embed generic font","enum":["sans","serif"]},"base_font_size":{"type":"integer","minimum":6,"maximum":22,"description":"Force a specific base font size in pts. All of the other fonts will be scaled proportionally to this value."},"ocr":{"type":"boolean","description":"Optical character recognition"},"language":{"type":"string","pattern":"^[a-zA-Z_,-]{3,128}$","description":"Language for the source (using ISO 639-2\/T standard). In case of multi language documents, a comma separated list of values without quotes or spaces can be used. Please note that both plain and script languages cannot be included at the same time. Supported values are: afr, amh, ara, asm, aze, aze_cyrl, bel, ben, bod, bos, bre, bul, cat, ceb, ces, chi_sim, chi_sim_vert, chi_tra, chi_tra_vert, chr, cos, cym, dan, deu, div, dzo, ell, eng, enm, epo, est, eus, fao, fas, fil, fin, fra, frk, frm, fry, gla, gle, glg, grc, guj, hat, heb, hin, hrv, hun, hye, iku, ind, isl, ita, ita_old, jav, jpn, jpn_vert, kan, kat, kat_old, kaz, khm, kir, kmr, kor, kor_vert, lao, lat, lav, lit, ltz, mal, mar, mkd, mlt, mon, mri, msa, mya, nep, nld, nor, oci, ori, pan, pol, por, pus, que, ron, rus, san, sin, slk, slv, snd, spa, spa_old, sqi, srp, srp_latn, sun, swa, swe, syr, tam, tat, tel, tgk, tha, tir, ton, tur, uig, ukr, urd, uzb, uzb_cyrl, vie, yid, yor, script-Arabic, script-Armenian, script-Bengali, script-Canadian_Aboriginal, script-Cherokee, script-Cyrillic, script-Devanagari, script-Ethiopic, script-Fraktur, script-Georgian, script-Greek, script-Gujarati, script-Gurmukhi, script-Hangul, script-Hangul_vert, script-HanS, script-HanS_vert, script-HanT, script-HanT_vert, script-Hebrew, script-Japanese, script-Japanese_vert, script-Kannada, script-Khmer, script-Lao, script-Latin, script-Malayalam, script-Myanmar, script-Oriya, script-Sinhala, script-Syriac, script-Tamil, script-Telugu, script-Thaana, script-Thai, script-Tibetan, script-Vietnamese","example":"rus,eng,deu"},"ocr_filter":{"type":"string","enum":["gray"],"description":"Apply a filter to the input file. It may improve text detection."},"ocr_filter_options":{"description":"Object containing specific filter options."},"language_stt":{"type":"string","enum":["ar-AR","ca-ES","zh-CN","cs-CZ","de-DE","el-GR","en-IN","en-US","es-ES","fa-IR","fr-FR","hi-IN","it-IT","ja-JP","kk-KZ","nl-NL","pl-PL","pt-FB","sv-SE","ru-RU","tl-PH","tr-TR","uk-UA","vi-VN"],"description":"Language of the audio source"}}}]