AddOn


PDFout - PDF-Generator

Beschreibung

Generator und Viewer für PDF-Dokumente. Das AddOn vereint den PDF-Generator DOMpdf (http://dompdf.github.io) und den Viewer PDFjs.

Erstellt PDFs direkt in REDAXO und zeigt sie mit PDFJs an.


github.com/FriendsOfREDAXO/pdfout

Umsetzung

Versionen

8.1.1

Für REDAXO
^5.15.1
Veröffentlicht am
13.12.2023
Require / PHP
>=8.1
Require / PHP Extensions
gd

What's Changed

version: '8.1.1'
vendor: '2.0.4'
pdfjs: '4.0.269'

added htaccess for mime-type mjs

Full Changelog: https://github.com/FriendsOfREDAXO/pdfout/compare/8.0.1...8.1.1

8.1.0

Für REDAXO
^5.15.1
Veröffentlicht am
13.12.2023
Require / PHP
>=8.1
Require / PHP Extensions
gd

Achtung! Für den Viewer muss der MIME-Type mjms bekannt gemacht werden
z.B: in der .htaccess
AddType text/javascript .mjs

What's Changed

Full Changelog: https://github.com/FriendsOfREDAXO/pdfout/compare/8.0.1...8.1.0

8.0.1

Für REDAXO
^5.14.0
Veröffentlicht am
24.09.2023
Require / PHP
>=8.0
Require / PHP Extensions
gd

8.0.0

Für REDAXO
^5.14.0
Veröffentlicht am
23.09.2023
Require / PHP
>=8.0
Require / PHP Extensions
gd

Achtung: sendPDF() wurde entfernt. Bitte auf die neue Schreibweise seit 7.x umstellen.

Vendor-Update pdfjs v3.10.111

Major Changes

removed deprecated sendPDF

What's Changed

New Contributors

Full Changelog: https://github.com/FriendsOfREDAXO/pdfout/compare/7.1.4...8.0.0

7.1.4

Für REDAXO
^5.14.0
Veröffentlicht am
29.06.2023
Require / PHP
>=8.0
Require / PHP Extensions
gd

7.0 - 7.1.4

Vollständig überarbeitete Version.
Neu: Setting-Methoden zur einfacheren Konfiguration
Neu: Der REDAXO-Outputfilter kann direkt ausgeführt werden
Neu: Gleichzeitige Ausgabe und Speicherung der PDF möglich
Neu: DPI kann eingestellt werden
Neu: Readme überarbeitet

Deprecated: sendPdf(), die Methode wird mit 8.0.0 entfernt. Daher bitte schon jetzt auf die neue Schreibweise umstellen.

Da die Methode als deprecated markiert ist wird empfohlen, folgende Schreibweise zu nutzen (siehe Beispiel-Code oben):

<?php

// alte Schreibweise (deprecated)
PdfOut::sendPdf(…);

// neue Schreibweise
$pdf = new PdfOut();
// Setter-Methoden verwenden - Siehe Readme
// Bsp.: $pdf->setName('meindateiname');
$pdf->setSaveToPath(rex_path::base() . 'media/')
->setSaveAndSend(false);
?>

Fix: In der sendPDF() fehlte setSaveToPath()

Added dompdf 2.0.3
PDF.js with pinch to zoom

Readme korrigiert
Corrected CS

6.2.1

Für REDAXO
^5.13.0
Veröffentlicht am
04.10.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Vendor: Security fix: https://github.com/dompdf/dompdf/issues/2994

Vendor: Change highlights since 2.0.0

Improved font-face declaration parsing and handling
Improved layout of images with percentage-based dimensions

6.2.0

Für REDAXO
^5.13.0
Veröffentlicht am
08.09.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Update: pdf.js v2.16.105

6.1.0

Für REDAXO
^5.13.0
Veröffentlicht am
30.06.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

6.0.0

Für REDAXO
^5.13.0
Veröffentlicht am
28.06.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

What's Changed

Thanks to @staabm & REXStan it's also a bit better in code

Full Changelog: https://github.com/FriendsOfREDAXO/pdfout/compare/5.2.0...6.0.0

Updated to version 2 of @dompdf - thanks

Change highlights since 1.2.x

  • Addresses multiple security vulnerabilities (see below)
  • Modifies callback and page_script/page_text handling (breaking change, see below)
  • Switches the HTML5 parser to Masterminds/HTML5
  • Improves CSS property parsing and representation
  • Improves border, outline, and background rendering for inline elements
  • Switches installed fonts and font metrics cache file format to JSON
  • Adds support for the inset CSS shorthand property and the legacy break-word keyword for word-break
  • Adds "end_document" callback event
Vulnerability References Type Severity
Improper Restriction of XML External Entity Reference #2564 Information Disclosure TBD
Deserialization of Untrusted Data #2564 Remote Code Execution Critical
External Control of File Name or Path #2564 Information Disclosure TBD
Server-Side Request Forgery #2564 Information Disclosure TBD

and much more

More Information https://github.com/dompdf/dompdf/releases/tag/v2.0.0

6.0.0-beta1

Für REDAXO
^5.13.0
Veröffentlicht am
27.06.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Updated to version 2 of @dompdf

Change highlights since 1.2.x

  • Addresses multiple security vulnerabilities (see below)
  • Modifies callback and page_script/page_text handling (breaking change, see below)
  • Switches the HTML5 parser to Masterminds/HTML5
  • Improves CSS property parsing and representation
  • Improves border, outline, and background rendering for inline elements
  • Switches installed fonts and font metrics cache file format to JSON
  • Adds support for the inset CSS shorthand property and the legacy break-word keyword for word-break
  • Adds "end_document" callback event
Vulnerability References Type Severity
Improper Restriction of XML External Entity Reference #2564 Information Disclosure TBD
Deserialization of Untrusted Data #2564 Remote Code Execution Critical
External Control of File Name or Path #2564 Information Disclosure TBD
Server-Side Request Forgery #2564 Information Disclosure TBD

and much more

More Information https://github.com/dompdf/dompdf/releases/tag/v2.0.0

5.2.0

Für REDAXO
^5.10.0
Veröffentlicht am
02.05.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd
  • PDF auf dem Server speichern

Mit dem Parameter "$saveToPath" kann man einen Pfad definieren, auf welchem die generierte PDF auf dem Server gespeichert wird.

https://github.com/FriendsOfREDAXO/pdfout/issues/49
@danspringer

Vendor 1.2.2
@skerbis

5.1.0

Für REDAXO
^5.10.0
Veröffentlicht am
13.04.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Menüpunkt entfernt.
Die Readme ist weiterhin in AddOns erreichbar.

5.0.3

Für REDAXO
^5.10.0
Veröffentlicht am
08.04.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

5.0.2

Für REDAXO
^5.10.0
Veröffentlicht am
18.02.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Dpi wieder auf 100
@olien

5.0.1

Für REDAXO
^5.10.0
Veröffentlicht am
17.02.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

Kleine Textkorrekturen in der Readme

5.0.0

Für REDAXO
^5.10.0
Veröffentlicht am
16.02.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd
  • Deprecated Methoden durch neue getOptions() ersetzt.
  • Ausgangspfad ist jetzt rex_path::frontend()

Sofern keine eigenen Änderungen oder abgewandelte Classes verwendet werden, sollte das Update keine Probleme verursachen.

4.3.0

Für REDAXO
^5.8.0
Veröffentlicht am
14.02.2022
Require / PHP
>=7.4
Require / PHP Extensions
gd

vendor: 'v1.2.0'

4.0 – 4.3.0

  • New class: PdfOut
  • New PdfOut::sendPdf($filename,$html)
  • New PdfOut::viewer($file)

Die neue Methode PdfOut::sendPdf() ermöglicht es schnell und unkompliziert DIN A4 Dokumente mit allen erforderlichen Einstellungen zu erstellen.
PdfOut::viewer() liefert immer die korrekte URL zum Viewer.