Comments (3)
IIRC external css is ont supported by tcpdf.
2014-07-19 11:55 GMT+02:00 cttech [email protected]:
I have used configuration like
Configure::write('CakePdf', array(
'engine' => 'CakePdf.Tcpdf',
'options' => array(
'print-media-type' => true,
'outline' => true,
'dpi' => 96
),
'margin' => array(
'bottom' => 15,
'left' => 50,
'right' => 30,
'top' => 45
),
'orientation' => 'portrait',
'download' => true,
'permission' => true
));After then I have added css with view file
echo $this->Html->css('company', array('fullBase' => true));I have checked normal view and it's fine but when I am downloading pdf no
css works!!—
Reply to this email directly or view it on GitHub
#65.
from cakepdf.
If I use Mpdf then I get the following warning and pdf is not generated..
Notice (8): Undefined index: BODY [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14242]
Notice (8): Undefined index: BODY>>ID>> [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14288]
Notice (8): Undefined offset: -1 [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14421]
Notice (8): Undefined index: DIV [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14242]
Notice (8): Undefined index: CLASS>>MAIN-CONTENT [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14245]
Notice (8): Undefined index: ID>>MAIN-CONTENT [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14280]
Notice (8): Undefined index: DIV>>CLASS>>MAIN-CONTENT [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14284]
Notice (8): Undefined index: DIV>>ID>>MAIN-CONTENT [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14288]
Notice (8): Undefined index: DIV [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14242]
..................................................................................................................................................
..................................................................................................................................................
One the other hand if I use DomPdf then css is not working as like Tcpdf.
from cakepdf.
Hence the advised engine is wkhtlm2pdf, although other engines should work
with the mentioned limitation of external css
Op 19 jul. 2014 17:09 schreef "cttech" [email protected]:
If I use Mpdf then I get the following warning and pdf is not generated..
Notice (8): Undefined index: BODY
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14242]
Notice (8): Undefined index: BODY>>ID>>
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14288]
Notice (8): Undefined offset: -1 [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php,
line 14421]
Notice (8): Undefined index: DIV [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php,
line 14242]
Notice (8): Undefined index: CLASS>>MAIN-CONTENT
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14245]
Notice (8): Undefined index: ID>>MAIN-CONTENT
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14280]
Notice (8): Undefined index: DIV>>CLASS>>MAIN-CONTENT
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14284]
Notice (8): Undefined index: DIV>>ID>>MAIN-CONTENT
[APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php, line 14288]
Notice (8): Undefined index: DIV [APP\Plugin\CakePdf\Vendor\mpdf\mpdf.php,
line 14242]..................................................................................................................................................
..................................................................................................................................................
One the other hand if I use DomPdf then css is not working as like Tcpdf.
I am not sure how can I generate proper pdf...—
Reply to this email directly or view it on GitHub
#65 (comment).
from cakepdf.
Related Issues (20)
- CakePdf configuration ignored by the plugin HOT 2
- Add debug option for PDF rendering engine - fonts not rendering HOT 1
- CakePHP 4.x Compatibility HOT 3
- Adapt project description to mention CakePHP 4 HOT 1
- Stable release for CakePHP 4 HOT 2
- Its showing Failed to load PDF document HOT 1
- Error with Cakephp4 HOT 1
- $CakePdf->viewVars($this->_View->viewVars); problem
- wkhtmltopdf binary is not found or not executable - getBinaryPath()
- Include CSS Files in Command does not work HOT 2
- Error in documentation HOT 2
- parameters not passed to mPDF engenie HOT 3
- Using PHP8 impossible with current configuration HOT 2
- Missing CSS with wkhtmltopdf 0.12.6
- Custom Engine possible? (Trying weasyprint) HOT 1
- Problemas ao usar wkhtmltopdf HOT 3
- Windows IIS PHP 8.0.12 System error "'""c:\wkhtmltopdf\bin\wkhtmltopdf.exe" is not recognized as an internal or external command HOT 1
- Support for CakePHP version 4.3 HOT 1
- Loading fonts on CakePHP 4 from Google Fonts HOT 1
- Linux server cannot run direct /usr/bin/wkhtmltopdf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakepdf.