SeedDMS_Previewpear.php.netCreate thumbnails from document content for SeedDMSSeedDMS is a web based document management system (DMS). These
are the classes to create preview images and pdf file from the document content.Uwe Steinmannsteinmuwe@steinmann.cxyes2023-01-091.5.01.5.0stablestableGPL License
- add previewer which creates txt
7.4.01.5.42012-11-201.0.01.0.0stablestableGPL License
- initial version
2013-04-291.1.01.1.0stablestableGPL License
- preview image can also be created from a document file (SeedDMS_Core_DocumentFile)
2014-03-181.1.11.1.0stablestableGPL License
- add converters for .tar.gz, .ps, .txt
2014-04-101.1.21.1.0stablestableGPL License
- create fixed width image with proportional height
2015-02-131.1.31.1.0stablestableGPL License
- preview images will also be recreated if the object this image belongs is of newer date than the image itself. This happens if versions are being deleted and than a new version is uploaded. Because the new version will get the version number of the old version, it will also take over the old preview image.Comparing the creation date of the image with the object detects this case.
2015-08-081.1.41.1.0stablestableGPL License
- command for creating the preview will be called with a given timeout
2016-02-111.1.51.1.5stablestableGPL License
- add method getFilesize()
- timeout for external commands can be passed to contructor of SeedDMS_Preview_Previewer
2016-03-081.1.61.1.6stablestableGPL License
- check if object passed to createPreview(), hasPreview() is not null
2016-03-291.1.71.1.7stablestableGPL License
- set last parameter of stream_select() to 200000 micro sec. in case the timeout in sec. is set to 0
2016-04-051.1.81.1.8stablestableGPL License
- pass variables to stream_select (required by php7)
2016-04-261.1.91.1.9stablestableGPL License
- add more documentation
- finish deletePreview()
- add new method deleteDocumentPreviews()
- fix calculation of timeout (Bug #269)
- check if cache dir exists before deleting it in deleteDocumentPreviews()
2016-11-071.2.01.2.0stablestableGPL License
- add new previewer which converts document to pdf instead of png
2016-11-151.2.11.2.0stablestableGPL License
- setConverters() overrides exiting converters
2017-03-021.2.21.2.0stablestableGPL License
- commands can be set for mimetypes 'xxxx/*' and '*'
- pass mimetype as parameter '%m' to converter
2017-09-181.2.31.2.0stablestableGPL License
- createPreview() returns false if running the converter command fails
2017-10-111.2.41.2.0stablestableGPL License
- fix typo in converter for tar.gz files
2017-10-111.2.51.2.0stablestableGPL License
- SeedDMS_Preview_Base::hasConverter() returns only try if command is set
2017-12-041.2.61.2.0stablestableGPL License
- SeedDMS_Preview_Base::setConverters() overrides existing converters.
- New method SeedDMS_Preview_Base::addConverters() merges new converters with old ones.
2018-01-181.2.71.2.0stablestableGPL License
- add SeedDMS_Preview_Base::sendFile() as a replacement for readfile() which uses
- mod_xsendfile if available
- execWithTimeout() reads data from stderr and returns it together with stdout in array
2018-03-081.2.81.2.0stablestableGPL License
- preview is also created if SeedDMS_Core_DocumentContent has a child class
2018-07-131.2.91.2.9stablestableGPL License
- make sure list of converters is always an array
- usage of mod_sendfile can be configured
2019-02-111.2.101.2.10stablestableGPL License
- new parameter for enabling/disabling xsendfile
- fix creation of pdf preview if document content class is not SeedDMS_Core_DocumentContent
2020-02-171.3.01.3.0stablestableGPL License
- add new methode getPreviewFile()
2020-03-211.3.11.3.1stablestableGPL License
- add parameter $target to SeedDMS_Preview_pdfPreviewer::hasRawPreview() and SeedDMS_Preview_pdfPreviewer::getRawPreview()
2020-12-231.3.21.3.1stablestableGPL License
- set header Content-Length
- update package description
2020-12-231.3.31.3.3stablestableGPL License
- close pipes in execWithTimeout(), also return exit code of command
- createPreview() has optional parameter by referenz to return true if a
preview image was actually created
2021-10-161.4.01.4.0stablestableGPL License
- use new conversion service if available
- createRawPreview() checks early if a converter exists