Property changes on: branches/vitalif/extensions/PdfHandler/poppler-utils.diff |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 1 | + native |
Index: branches/vitalif/extensions/PdfHandler/PdfHandler.php |
— | — | @@ -45,23 +45,22 @@ |
46 | 46 | ); |
47 | 47 | |
48 | 48 | // External program requirements... |
49 | | -if ( !isset( $wgPdfProcessor ) ) $wgPdfProcessor = 'gs'; |
50 | | -if ( !isset( $wgPdfInfo ) ) $wgPdfInfo = 'pdfinfo'; |
51 | | -if ( !isset( $wgPdftoText ) ) $wgPdftoText = 'pdftotext'; |
| 49 | +$wgPdfProcessor = 'gs'; |
| 50 | +$wgPdfInfo = 'pdfinfo'; |
| 51 | +$wgPdftoText = 'pdftotext'; |
52 | 52 | |
53 | | -// GhostScript's output device name and file extension |
54 | | -if ( !isset( $wgPdfOutputDevice ) ) $wgPdfOutputDevice = 'jpeg'; |
55 | | -if ( !isset( $wgPdfOutputExtension ) ) $wgPdfOutputExtension = 'jpg'; |
| 53 | +$wgPdfOutputDevice = 'jpeg'; |
| 54 | +$wgPdfOutputExtension = 'jpg'; |
56 | 55 | |
57 | 56 | // Now PdfHandler selects output DPI by itself, based on requested image size |
58 | 57 | // If you want more quality, specify a power of 2 here. |
59 | 58 | // Generated images will be downscaled by browser. |
60 | | -if ( !isset( $wgPdfDpiRatio ) ) $wgPdfDpiRatio = 2; |
| 59 | +$wgPdfDpiRatio = 1; |
61 | 60 | |
62 | 61 | // This setting, if enabled, will put creating thumbnails into a job queue, |
63 | 62 | // so they do not have to be created on-the-fly, |
64 | 63 | // but rather inconspicuously during normal wiki browsing |
65 | | -if ( !isset( $wgPdfCreateThumbnailsInJobQueue ) ) $wgPdfCreateThumbnailsInJobQueue = false; |
| 64 | +$wgPdfCreateThumbnailsInJobQueue = false; |
66 | 65 | |
67 | 66 | // Enable PDF upload by default. If you want to forbid PDF upload - do so in your LocalSettings.php |
68 | 67 | $wgFileExtensions[] = 'pdf'; |