12/19/2023 0 Comments Pdfinfo exe![]() ![]() If PDF files are rendered randomly check if the "C.UTF-8" locale is available on your server by running locale -a and make sure that configuration parameter $wgShellLocale is set to this locale.If PDF files do not show properly after installation (for example saying 0 height and width) you may need to use the maintenance scripts "refreshImageMetadata.php -f" and "rebuildImages.php" Example: php refreshImageMetadata.php -mime application/pdf -force Also try to purge the page of the file.Also check your error log, and make sure that your host hasn't disabled running external commands. If PDF files do not display after upload, make sure that MediaWiki can execute the pdfinfo command and that configuration parameter $wgPdfInfo is set properly.$wgPdfProcessor = '/usr/local/bin/gs' $wgPdfPostProcessor = $wgImageMagickConvertCommand // if defined via ImageMagick // $wgPdfPostProcessor = '/usr/local/bin/convert' // if not defined via ImageMagick $wgPdfInfo = '/usr/local/bin/pdfinfo' $wgPdftoText = '/usr/local/bin/pdftotext' Nota: This is identical to the default settings for this extension. $wgMaxShellMemory - memory limit for gs, convert and pdfinfo.Enable ImageMagick, if you haven't already: $wgUseImageMagick = true.Enable PDF uploads, if you haven't already: $wgFileExtensions = 'pdf'.Variables below are not specific to this extension $wgPdfHandlerJpegQuality (default = "95" / since MW 1.24+ ) Quality level, which the post processor should use. If instead this parameter is set to 300 dpi, the width will be 2480 pixels. This yields an image 1240 pixels wide (at 150 dpi). For example, a PDF page with the European size A4 is 210 mm wide, corresponding to 595 points (at 72 dpi). $wgPdfProcessor (default = "gs") path to your ghostscript implementation $wgPdfPostProcessor (default = "convert") path to your imagemagick convert $wgPdfInfo (default = "pdfinfo") path to your pdfinfo $wgPdftoText (default = "pdftotext") path to your pdftotext $wgPdfOutputExtension (default = "jpg") preferred output format $wgPdfHandlerDpi (default = "150" ) resolution in dpi The extension extracts a bitmap image for each page of the PDF, using this resolution (dpi = dots per inch). You can (or, depending on the operating system of the server, will have to) set some variables in the "LocalSettings.php" file: Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.Type the following in your shell to see if you have the above installed first (it should list 4 rows): On Ubuntu and Debian, the "poppler-utils" package can be used instead of "xpdf-utils". If you see "0 × 0 pixel" on the file description of a PDF, you lack this package. This extension requires the following packages to be installed first:ĭoes dynamic resizing and thumbnailing of images.Įxtracts metadata from PDF files. ![]() Additionally, this extension allows Extension:ProofreadPage to handle pdfs in side-by-side view for transcribing/proofreading, as is done on Wikisource.Without this extension, pdfs will not display properly when uploaded. If you upload a new pdf file, the metadata will be stored in the database, and then this file can be shown in a multipage preview layout like the djvu handler does. The main usage of the PdfHandler extension is without user interaction.If you would like to present a 2-page pdf, for example, do the following: ] ] Because PdfHandler extends ImageHandler, you can use all the arguments that you would for an Image - for example: thumb, right/left, caption, border, link, etc.Instead of a size-parameter, you can also use the thumb-parameter, with or without captions: ]. The page and size parameters are optional the default page is page #1. A user can display PDF files as an image, showing a single page at a time, like so: ].This allows users to transcribe books and other documents. Together with the Proofread Page extension, PDF files can be displayed side-by-side with text. The PdfHandler extension shows uploaded PDF files in a multipage preview layout. ![]() Traduce la extensión PdfHandler si está disponible en ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |