This repository was archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathImage2PDF.php
More file actions
41 lines (35 loc) · 1.42 KB
/
Image2PDF.php
File metadata and controls
41 lines (35 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace ConvertAPI;
require_once('Abstract2PDF.php');
/**
* Extends the ConvertAPI class to convert Image documents into PDF format via
* convertapi.com.
*
* @see http://www.convertapi.com/image-pdf-api
*/
class Image2Pdf extends Abstract2Pdf {
/**
* URL of the appropriate convertapi.com API.
*/
protected $_apiUrl = 'https://do.convertapi.com/Image2Pdf';
/**
* An array of valid input file formats for this conversion. Overrides the
* parent array.
*/
protected $_validInputFormats = array('avs', 'bmp', 'dcx',
'dib', 'dpx', 'fax',
'fits', 'fpx', 'gif',
'ico', 'iptc', 'jbig',
'jp2', 'jpeg', 'jpg',
'mdi', 'miff', 'mng',
'mpc', 'mtv', 'otb',
'pbm', 'pcd', 'pcds',
'pct', 'pcx', 'pgm',
'pict', 'png', 'pnm',
'ppm', 'psd', 'p7',
'ras', 'rgba', 'sun',
'tga', 'tiff', 'tif',
'vicar', 'vid', 'viff',
'wmf', 'xbm', 'xpm',
'xwd');
}