- Support for Craft CMS
5.0.0and later versions.
- A bug that prevented using dynamic Craft asset's on
5.0.0and later.
- Autumnal Equinox
- Support for Craft CMS
5.0.0-betaand later versions.
- A bug that prevented accessing plugin settings in Craft CMS
5.0.0-beta.
- Washington’s Birthday
- Users can now install
monolog\monologpackage to enable logging forlogoption on Craft CMS.
- Resolve issue with unavailable settings in
GenerateThumbConfigurationclass.- Users can now adjust the thumbnail quality by passing a
thumbQualityparameter.
- Users can now adjust the thumbnail quality by passing a
- Improve code readability and consistency across all classes.
- This change does not affect the functionality or performance of the project.
- Happy Orthodox New Years Day.
- Customizable filename for dumb thumbnails
- Option to specify the directory for dumb thumbnails
- Functionality to adjust thumbnail quality
- Random filename when input filename is null
- Empty Entry when input entry is null
- Mechanism for loading PDF footers and headers with start and end page options:
- Fixed duplicated start pages,
- Fixed incorrect page numbering when using footers or headers,
- Fixed the empty page at the end of the file.
- Refactor classes targeted to paths.
- Fixed fallback image when QR package is missing
- Team CoolTRONIC.pl LLC wishes everyone a Merry Orthodox Christmas.
- Support for Craft v5.0.x in Optional packages installer, using the same versions as v4.0.
- Import of image generation classes for methods via Imagick, compatible with v5.0.x.
- Detection of PHP 8.2 and 8.3 locations for Craft v5.0.
- Missing packages for JavaScript in Admin Settings options, causing plugin issue in
5.0.0.alpha.
- Compatibility with the latest 5.0.0.alpha version of Craft CMS, a flexible and user-friendly content management system.
- Happy New Year Edition
- Happy Christmas Eve from CoolTRONIC.pl LLC team
- Lite: Option to disable compression of the generated PDF files (
disableCompression). This may affect the file size and the quality. - Plus: Option to choose the generation mode of the PDF files (
generateMode) among PDF-A, PDF-X, PDF-A Auto, and PDF-X Auto. This option requires the Plus plan and can be set as one of the following strings:pdfa,pdfx,pdfaauto, orpdfxauto. - Lite: Mechanism to check status of installed packages in
PackageManagerclass. - Lite: Option to uninstall packages and new optional package
simplehtmldom/simplehtmldom. - Plus: Option to convert all images to CMYK in document for PDF-X mode (
convertImgToCMYK) with optional packagesimplehtmldom/simplehtmldom. This option requires the Plus plan and ImageMagick. - Lite: Option to set the mode for parsing URLs (
URLMode). The possible values aredefault,curl, orsimplehtml. Thesimplehtmlmode requires the optional packagesimplehtmldom/simplehtmldom. - Lite: Option to print output of debug mPDF into specified file (
log). For example,@alias(root) ~ '\mpdf.txt'. - Lite: Option to set the colorspace (
colorspace). It can be set as an integer:1- allow GRAYSCALE only [convert CMYK/RGB->gray]2- allow RGB / SPOT COLOR / Grayscale [convert CMYK->RGB]3- allow CMYK / SPOT COLOR / Grayscale [convert RGB->CMYK]0- or any other value: no restriction is made on colorspace used
- Improve the readability and consistency of the functions and descriptions in the plugin classes.
- Change the order of the settings in the General Tab with checkboxes and switches.
- Optimize the keywords in composer.json for better searchability.
- Optimize the mechanism and layout of installing packages. Now plugin uses light switches to install / uninstall optional packages and shows what is installed.
- Improve mechanism of saving generated by ImageMagick thumbnails to be more reliable.
- Delete the unused imports from the code.
- Remove unnecessary alerts import from plugin settings panel.
- Fixed a bug that prevented users from setting options in settings when the Plus Plan was active. Now you can customize your PDFs with the advanced features of the Plus Plan.
- Changed
URLModeoption in plugin settings panel. - Refactored descriptions and instructions in plugin settings panel for clarity and consistency.
- Fixed a typo in the CHANGELOG.md file.
- Changed option from
URLmodeintoURLMode.
- Correct
endPagesettings in the plugin panel. - Fixed error to save stream with another encoding than
UTF-8when settingencodingwith enabledURLPurifyinDocumentHelperVariable.
- Restore
URLModeand correctstartPagesettings in the plugin panel for themasterbranch that was missing in the previous release. - Correct the
URLModedescription in the README.md file.
thumbBestfitoption to adjust thumbnail size with best-fit mode when usingdumbThumborassetThumboptions. This improves the quality and appearance of thumbnails.protectionmode and helper options to enhance password protection of PDFs with ISO, DIN, and BSI standards (Plus Plan required). This enhances the security and privacy of documents.- Option to remove the plugin’s invisible watermark from generated documents (Plus Plan required). This improves the aesthetics and professionalism of documents.
URLTwigRenderoption to render Twig variables on parsed custom URLs as optional. This allows to use of attributes like{{custom}}or QR Code as{{qrimg}}from parsed custom URL.startPageis the first page of the PDF to be generated. You can use this option to trim unnecessary pages from the beginning of the PDF.endPageis the last page of the PDF to be generated. You can use this option to trim unnecessary pages from the end of the PDF.URLModeoption can be set tocurl, to get URLs via CURL instead of file_get_contents.
- [BREAKING] Merged two Craft CMS branches
craft3andmasterinto one package with version2.0.0. This requires updating the plugin to use it on Craft CMS 3.x and 4.x. - Improved the layout and design of the settings control panel tabs. This improves the usability and responsiveness of the settings control panel.
- Refactored code of
DocumentHelperVariable.phpto remove duplicate code and improve readability. This improves the maintainability and compatibility of the code. - Implemented Plus functionality in the plugin to restrict some new features for paying users. These features include the new
protectionmode and the option to remove the plugin’s watermark. Please consider upgrading to the Plus plan to use them.
- [SECURITY] Bug in the functions when parsing URL content with unset
URLPurifyoption. This bug could allow malicious users to inject arbitrary code into your website by sending specially crafted URLs. This fix prevents this vulnerability by sanitizing the input before passing without settingURLPurify. - Missing
encodingsetting in the plugin panel for Craft CMS 3.x branch. - Improper handle of a plugin into
document-helperswhich is used in the Plugin Store.
- [BREAKING] Discontinued the separate
craft3branch for Craft CMS 3 and unified the codebase for both Craft CMS 3 and 4 in themasterbranch. This requires updating the plugin to the latest version to use it on either Craft CMS version.
- Corrected spelling errors in the plugin settings panel descriptions.
- Added checks for the existence of Twig or HTML files in the
template,header, andfooterparameters. - Added checks for the existence of external classes of optional QR code generator package.
- Resolved an issue where setting an option to
falsecould cause problems with theisset()function.
- Enabled the generation of PDFs from inline code block content or custom URLs as the
template,header, andfooterparameters.
- Included an optional package for scraping external URLs with HTML Purifier.
- Added the
URLPurifyoption to sanitize the HTML content scraped from URLs when installed optional package. - Added the
encodingoption to specify the encoding for theURLPurifyandmPDFinput streams.
- Made QR Code package as optional and not installed by default.
- Implemented plugin default settings screen.
- Added a new option to configure the plugin globally.
- Enabled installing additional packages from the Settings menu.
- Bug Fix: Fixed a bug that caused incorrect date validation of PDF file.
- Bug Fix: Fixed a bug that caused an error when using headers and footers.
- New Feature: Added a feature that allows you to include a QR code image in the template using
qrdataandqrimgvariables.
- Bug Fix: Solved a problem that was caused by the new
GenerateThumbclass, which had many errors in the code. This fix makes the thumbnail generation work correctly.
- Bug Fix: Fixed a problem that occurred due to the introduction of the
ExtendedAssetclass, which had a conflicting declaration of setter and getter methods and an incorrectgetMimeTypegetter return type declaration. This fix resolves the issues with thumbnail generation.
- Bug Fix: Solved a problem that was introduced by importing the
FileHelperclass.
- New Feature: Introduced additional parameters for image thumbnail generation in
pdfOptionsforpdfAssetandpdfmethods:assetThumb: Generates an image thumbnail of the Asset usingpdfAsset. Individual options include:assetThumbVolumeHandle: An optional parameter for specifying the Volume Handle for the Thumbnail.
dumbThumb: Generates a simple thumbnail image (without Asset) using thepdfmethod.- Thumbnail customization options for both
assetThumbanddumbThumbinclude:thumbType: Allows selection of thumbnail format fromjpg,gif,webp,avif, andpng.thumbWidth: Specifies the width of the thumbnail.thumbHeight: Specifies the height of the thumbnail.thumbPage: Specifies the page to generate (first page is 0).thumbTrim: Trims and centers the page.thumbBgColor: Sets the background color of the thumbnail (default is white).thumbTrimFrameColor: Changes the color of the trim frame.
- Bug Fix: Resolved an issue causing deletion of PDF files with the
pdfAssetmethod, even withoutassetDelete. Also fixed minor bugs. - Enhancement: Updated
README.mdwith information about the newly added thumbnail generation options.
- Fix: Corrected the
pluginVendorNamefor accurate synchronization with the plugin store. - Fix: Corrected the
composer.jsonfile for accurate synchronization with the plugin store. - Fix: Made revisions to
README.mdand fixed minor bugs.
- Feature: Introduced
pdfAssetmethod, which can create, update, or retrieve a Craft CMS Asset. - Enhancement: Added additional options to
pdfOptionsfor the newpdfAssetmethod:assetDelete: Deletes the temporary file after adding the Asset,assetTitle: Sets a custom title for the stored Asset,assetFilename: Sets a custom filename for the stored Asset,assetSiteId: Sets a custom siteId for the Asset.
- Feature: Updated README with descriptions of the new method, options, and a guide on generating thumbnails for PDF Assets.
- Enhancement: Switched to the Craft License for legal reasons.
- Introduced an example for right-to-left (RTL) text
- Expanded pdfOptions with support for Watermark Images and Text
- Implemented functionality for automatic Table of Contents generation
- Implemented functionality for automatic Bookmarks generation
- Performed necessary code refactoring for the plugin.
- Introduced a new attribute to specify a custom temporary directory path.
- Added capability to set the PDF orientation to either portrait or landscape mode.
- Expanded format options beyond the default A4, effective since version 1.0.4.
- Included an example of a PDF thumbnail in the README.md documentation.
- Update CHANEGLOG and README
- Feature update for Craft CMS 4
- Add author option
- Add keywords option
- Enable manual page break mode (no_auto_page_break) option
- Add option to password protect of PDF
- Merged with @AramLoosman
- Remove unused function
- Add custom variables to footer and header
- Changed fontDirs variable in plugin code to fontDir as in README.md
- Minor changes
- Fix some typos in README.md
- Fixed encoding issues and minor mislead of comments in non-latin extended systems in files
- Update for Craft 4
- Now autoupdate of files works properly with PHP8.0.x like on examples
- Corrected spelling errors in the plugin settings panel descriptions.
- Added checks for the existence of Twig or HTML files in the
template,header, andfooterparameters. - Added checks for the existence of external classes of optional QR code generator package.
- Resolved an issue where setting an option to
falsecould cause problems with theisset()function.
- Enabled the generation of PDFs from inline code block content or custom URLs as the
template,header, andfooterparameters.
- Included an optional package for scraping external URLs with HTML Purifier.
- Added the
URLPurifyoption to sanitize the HTML content scraped from URLs when installed optional package. - Added the
encodingoption to specify the encoding for theURLPurifyandmPDFinput streams.
- Made QR Code package as optional and not installed by default.
- Implemented plugin default settings screen.
- Added a new option to configure the plugin globally.
- Enabled installing additional packages from the Settings menu.
- Bug Fix: Fixed a bug that caused incorrect date validation of PDF file.
- Bug Fix: Fixed a bug that caused an error when using headers and footers.
- New Feature: Added a feature that allows you to include a QR code image in the template using
qrdataandqrimgvariables.
- New Feature: Introduced additional parameters for image thumbnail generation in
pdfOptionsforpdfAssetandpdfmethods:assetThumb: Generates an image thumbnail of the Asset usingpdfAsset. Individual options include:assetThumbVolumeHandle: An optional parameter for specifying the Volume Handle for the Thumbnail.
dumbThumb: Generates a simple thumbnail image (without Asset) using thepdfmethod.- Thumbnail customization options for both
assetThumbanddumbThumbinclude:thumbType: Allows selection of thumbnail format fromjpg,gif,webp,avif, andpng.thumbWidth: Specifies the width of the thumbnail.thumbHeight: Specifies the height of the thumbnail.thumbPage: Specifies the page to generate (first page is 0).thumbTrim: Trims and centers the page.thumbBgColor: Sets the background color of the thumbnail (default is white).thumbTrimFrameColor: Changes the color of the trim frame.
- Bug Fix: Resolved an issue causing deletion of PDF files with the
pdfAssetmethod, even withoutassetDelete. Also fixed minor bugs. - Enhancement: Updated
README.mdwith information about the newly added thumbnail generation options.
- Fix: Corrected the
composer.jsonfile for accurate synchronization with the plugin store. - Fix: Made revisions to
README.mdand fixed minor bugs.
- Feature: Introduced
pdfAssetmethod, which can create, update, or retrieve a Craft CMS Asset. - Enhancement: Added additional options to
pdfOptionsfor the newpdfAssetmethod:assetDelete: Deletes the temporary file after adding the AssetassetTitle: Sets a custom title for the stored AssetassetFilename: Sets a custom filename for the stored AssetassetSiteId: Sets a custom siteId for the Asset
- Feature: Updated README with descriptions of the new method, options, and a guide on generating thumbnails for PDF Assets.
- Enhancement: Switched to the Craft License for legal reasons.
- Introduced an example for right-to-left (RTL) text
- Expanded pdfOptions with support for Watermark Images and Text
- Implemented functionality for automatic Table of Contents generation
- Implemented functionality for automatic Bookmarks generation
- Performed necessary code refactoring for the plugin.
- Introduced a new attribute to specify a custom temporary directory path.
- Added capability to set the PDF orientation to either portrait or landscape mode.
- Expanded format options beyond the default A4, effective since version 1.0.4.
- Included an example of a PDF thumbnail in the README.md documentation.
- Update Icon's, CHANEGLOG and README for Craft CMS 3
- Feature update for Craft CMS 3
- Add author option
- Add keywords option
- Enable manual page break mode (no_auto_page_break) option
- Add option to password protect of PDF
- Fix of fontDir bug, thanks to @iwe-hi
- Merged with @AramLoosman
- remove unused function
- add custom variables to footer and header
- changed fontDirs variable in plugin code to fontDir as in README.md
- Add custom fonts to include in template
- Added custom title to attributes
- Added custom variables to attributes
- Update README.MD
- Updated README.MD
- Rename the plugin
- Initial release
- PDF Generator for Craft 3