summaryrefslogtreecommitdiff
path: root/plugins/mime.pdf.php
AgeCommit message (Collapse)AuthorFilesLines
2026-06-02mime_pdf_update: add reload_pdf branch for non-upload text re-extractionLester Caine1-2/+10
When source_file is already in pStoreRow (e.g. called from a non-fisheye context with reload_pdf set), re-extract the text layer without replacing the stored file. Fisheye handles this via edit_image.php directly; this branch covers other call sites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02Tidy Imagick usage in processor and mime.pdf pluginsLester Caine1-1/+1
processor.imagick: ImagickPixel('none') explicit colour, add clear() to rotate mime.pdf: fix dest_branch absolute path in regenerate case — strip STORAGE_PKG_PATH and ensure trailing slash before passing to liberty_generate_thumbnails Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02Fix deprecated Imagick calls in mime_pdf_thumbnailLester Caine1-2/+2
flattenImages() -> mergeImageLayers(LAYERMETHOD_FLATTEN) destroy() -> clear() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01Fix PDF thumbnail generation — fire on upload even when source_file not ↵Lester Caine1-2/+2
yet set mime_default_update/store don't set top-level source_file; mime_pdf_thumbnail already handles the upload hash directly, so the guard just needs to also trigger when upload is present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21Clean up temp pdftotext .txt file after text extractionLester Caine1-0/+1
The extracted .txt file was left in the upload directory after file_get_contents(). Added unlink() to remove it immediately. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21Replace dead magick CLI call in mime_pdf_thumbnail with PHP imagickLester Caine1-34/+35
shell_exec('which magick') was dead since magick CLI was removed in favour of the PHP imagick extension. Rewritten to use \Imagick directly to rasterise the first page of a PDF to JPEG before passing to liberty_generate_thumbnails. Thumbnail sizes now inherited from global $gThumbSizes via liberty_generate_thumbnails rather than hardcoded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14php-cs-fixer tidies to php8.5 standardsLester Caine1-2/+2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16Style tidies for PHP8.4lsces1-10/+14
2026-04-02Modern pdf handler using pdf.js extended to allow search from url. Needs the ↵lsces1-45/+91
modifed build of pdf.js to work fully.
2025-08-27plugin changes to cover namespace and style changes for PHP8.4lsces1-20/+24
2013-07-15liberty_jpeg_originals was messing up PDF thumbnailslsces1-1/+6
need option to load original.jpg or the proper file
2012-06-07Not quite sure how this was supposed to work, but it works with my"Lester Caine ext:(%22)1-2/+2
flatmodel attachments storage. May need extra work with normal storage model.
2012-06-07Trailing white space stripped"Lester Caine ext:(%22)1-6/+6
2011-06-27change dest_path to dest_branch to follow convention and avoid confusionChristian Fowler1-7/+7
2011-02-15overhaul storing of complete storage_url int liberty_files, and only use the ↵spiderr1-2/+2
stored file name. compute everything else when needed.
2010-06-09Strip down CVS keywords.cvs2git1-2/+2
2009-04-29remove treasury refwjames51-3/+3
2009-01-15add option to use swftools to convert pdfs to swf and display the PDF inlineMax Kremmel1-0/+181