Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Purrmann committed Jun 9, 2015
2 parents 436a117 + 1a1d7e0 commit f0e7442
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Documentation/Administrator/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ Installation

- Just install extension through extension manager

There are two ways of displaying the PDF generation link on page.
1. Just insert it as plugin via backend
2. Use ``lib.web2pdf`` in TypoScript to show link on each page (e.g. ``page.100 < lib.web2pdf``)

Configuration
-------------

* Extension can be configured in constant manager
* Extension can be configured in constant manager, see configuration_.
56 changes: 55 additions & 1 deletion Documentation/Configuration/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,63 @@ Target group: **Developers**

.. _configuration-typoscript:

Template
--------
Just override ``plugin.tx_web2pdf.view`` to use you own template. Default Template is found in ``EXT:web2pdf/Resources/Private/Templates/Pdf/GeneratePdfLink.html``

TypoScript Reference
--------------------

All possible configurations can be seen in constant editor in TYPO3 Backend.
* PDF Configuration can be set in constant editor or TypoScript
::

plugin.web2pdf.settings {
# e.g.: A4, A5, etc
pdfPageFormat = {$plugin.tx_web2pdf.settings.pdfPageFormat}
# L = Landscape P = Portrait
pdfPageOrientation = {$plugin.tx_web2pdf.settings.pdfPageOrientation}
pdfLeftMargin = {$plugin.tx_web2pdf.settings.pdfLeftMargin}
pdfRightMargin = {$plugin.tx_web2pdf.settings.pdfRightMargin}
pdfTopMargin = {$plugin.tx_web2pdf.settings.pdfTopMargin}
# which stylesheet to use: print or screen stylesheet
pdfStyleSheet = {$plugin.tx_web2pdf.settings.pdfStyleSheet}
}

Replacements
------------
There are two replacements options: StringReplacement AND/OR PregReplacement
SearchString and ReplacementString need to have the same key

Can be set via TypoScript using following options:
::

plugin.web2pdf.settings {
pdfPregSearch {
1 =
}

pdfPregReplace {
1 =
}

pdfStrSearch {
1 =
}

pdfStrReplace {
1 =
}
}
Example: Replace `Hello` with `Good Night`
::

plugin.web2pdf.settings {

pdfStrSearch {
1 = Hello
}

pdfStrReplace {
1 = Good Night
}
}
2 changes: 1 addition & 1 deletion Documentation/Introduction/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ What does it do?
----------------

Web2PDF is a fluid and extbase based extension, which provides the functionality to render an PDF File out ouf a HTML Page.
Generate an "PDF Link" on each page by including plugin in typoscript or just on songle pages using TYPO3 Backend.
Generate an "PDF Link" on each page by including plugin in TypoScript or just on single pages using TYPO3 Backend.

Uses CSS to render PDF Output. CSS with media key "all" is included automaticcly. You can choose if you want to include "screen" or "print" CSS.
4 changes: 2 additions & 2 deletions Documentation/Settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
conf.py:
copyright: 2015
project: web2pdf
version: 0.0.2
release: 0.0.2
version: 1.0.0
release: 1.0.0
intersphinx_mapping:
t3tsref:
- http://docs.typo3.org/typo3cms/TyposcriptReference/
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
product-name="web2pdf">
<header/>
<body>
<trans-unit id="web2pdf.printLabel">
<source>Print Current Page</source>
</trans-unit>
<trans-unit id="constants.category.pdf">
<source>PDF format settings</source>
</trans-unit>
Expand Down
3 changes: 2 additions & 1 deletion Resources/Private/Templates/Pdf/GeneratePdfLink.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<p>
<f:link.action action="" arguments="{argument:settings.pdfQueryParameter}" addQueryString="1">Print Page
<f:link.action action="" arguments="{argument:settings.pdfQueryParameter}" addQueryString="1">
<f:translate key="web2pdf.printLabel" />
</f:link.action>
</p>
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'dependencies' => 'extbase,fluid',
'state' => 'stable',
'clearCacheOnLoad' => '1',
'version' => '0.0.3',
'version' => '1.0.0',
'constraints' => array(
'depends' => array(
'typo3' => '6.0.0-7.2.0',
Expand Down

0 comments on commit f0e7442

Please sign in to comment.