Giter Club home page Giter Club logo

pdf's Introduction

Looking for maintainers, I no longer do much if any PHP dev, I have moved on, mostly work in dotnet core, node.js & golang these days. If anyone is keen to take over these projects, get in touch - [email protected]

PS. I know this is one of the more popular repos and I know some of you have been having a few issues with it. I use athenapdf for all my PDF generation needs these days.

The Pdf Gear

Build Status Latest Stable Version Total Downloads License

This project started life as a DOCX templating engine. It has now envolved to also support converting HTML to PDF using a headless version of webkit, phantomjs.

The DOCX templating is great for documents that end clients update and manage over time, particularly text heavy documents. For example I use it to auto generate some legal contracts, where simple replacements are made for attributes like First Name, Last Name, Company Name & Address. The client, an insurance company, can provide updated template word documents that might contain subtle changes to policies & other conditions.

The HTML to PDF engine is great for cases where greater control over the design of the document is required. It's also more natural for us programmers, using standard HTML & CSS, with a splash of Javscript.

How to Install

Installation via composer is easy:

composer require gears/pdf:*

You will also need to add the following to your root composer.json file.

"scripts":
{
	"post-install-cmd": ["PhantomInstaller\\Installer::installPhantomJS"],
	"post-update-cmd": ["PhantomInstaller\\Installer::installPhantomJS"]
}

DOCX: If you are going to be using the DOCX templating you will need to install either libre-office-headless or unoconv on your host.

How to Use, the basics

Both APIs are accessed through the main Pdf class.

To convert a word document into a PDF without any templating:

$pdf = Gears\Pdf::convert('/path/to/document.docx');

To save the generated PDF to a file:

Gears\Pdf::convert('/path/to/document.docx', '/path/to/document.pdf');

To convert a html document into a PDF:

$pdf = Gears\Pdf::convert('/path/to/document.html');

NOTE: The save to file works just the same for a HTML document.

DOCX Templating

By default the DOCX backend defaults to using libre-office-headless, to use unoconv, override the converter like so:

$document = new Gears\Pdf('/path/to/document.docx');
$document->converter = function()
{
	return new Gears\Pdf\Docx\Converter\Unoconv();
};
$document->save('/path/to/document.pdf');

NOTE: Currently the HTML backend only uses phantomjs.

There are several templating methods for the DOCX engine. The first is setValue, this replaces all instances of ${FOO} with BAR

$document->setValue('FOO', 'BAR');

To clone an entire block of DOCX xml, you surround your block with tags like: ${BLOCK_TO_CLONE} & ${/BLOCK_TO_CLONE}. Whatever content is contained inside this block will be repeated 3 times in the generated PDF.

$document->cloneBlock('BLOCK_TO_CLONE', 3);

If you need to replace an entire block with custom DOCX xml you can. But you need to make sure your XML conforms to the DOCX standards. This is a very low level method and I wouldn't normally use this.

$document->replaceBlock('BLOCK_TO_REPLACE', '<docx><xml></xml></docx>');

To delete an entire block, for example you might have particular sections of the document that you only want to show to certian users.

$document->deleteBlock('BLOCK_TO_DELETE');

Finally the last method is useful for adding new rows to tables. Similar to the cloneBlock method. You place the tag in first cell of the table. This row is the one that gets cloned.

$document->cloneRow('ROW_TO_CLONE', 5);

For more examples please see the Unit Tests. These contain the PHP code to generate the final PDF along with the original DOCX templates.

NOTE: The HTML to PDF converter does not have these same templating functions. Obviously it's just standard HTML that you can template how ever you like.

HTML PhantomJs Print Environment

This is still in development and subject to radical change. So I won't document this section just yet...

Credits

The DOCX templating code originally came from PHPWord

You may still like to use PHPWord to generate your DOCX documents. And then use this package to convert the generated document to PDF.


Developed by Brad Jones - [email protected]

pdf's People

Contributors

brad-jones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdf's Issues

Unable to save or generate PDF file

Upon successful install of the library and managed to run it via PHP script, it's throwing this error below.

Warning: file_get_contents(/tmp/gears-pdf-libreoffice/generated/GearsPdfvtISnh.pdf): failed to open stream

Have anyone had the same issue and figured it out? Thanks

An uncaught Exception was encountered Type: RuntimeException

I am encountering the above error after executing this statement:

//$temp_file is the .docx file created by phpWord
//res is the name of the .docx file without the extension
Gears\Pdf::convert('C:\xampp\htdocs\yu\\'.$temp_filename, 'C:\xampp\htdocs\yu\\'.$res.'.pdf',
                [
                    'converter' => function()
                    {
                        return new Gears\Pdf\Docx\Converter\LibreOffice
                        ([
                            'binary' => 'C:\Program Files (x86)\LibreOffice 5\program\soffice.exe',
                            'output'=>'C:\xampp\htdocs\yu'                            
                        ]);
                    }
                ]);

My backtrace is as follows:

An uncaught Exception was encountered

Type: RuntimeException

Message: (null)

Filename: C:\xampp\htdocs\yu\vendor\gears\pdf\src\Pdf\Docx\Converter\LibreOffice.php

Line Number: 139

Backtrace:

File: C:\xampp\htdocs\yu\vendor\gears\pdf\src\Pdf\Docx\Backend.php
Line: 115
Function: convertDoc

File: C:\xampp\htdocs\yu\vendor\gears\pdf\src\Pdf.php
Line: 184
Function: generate

File: C:\xampp\htdocs\yu\vendor\gears\pdf\src\Pdf.php
Line: 168
Function: save

File: C:\xampp\htdocs\yu\application\controllers\Applications.php
Line: 255
Function: convert

File: C:\xampp\htdocs\yu\index.php
Line: 317
Function: require_once

When i var_dump $cmd in LibreOffice.php line 123 i get the following:
string(212) "start /wait C:\Program Files (x86)\LibreOffice 5\program\soffice.exe --headless --convert-to pdf:writer_pdf_Export --outdir "C:\xampp\htdocs\yu" "C:\Users\sirben\AppData\Local\Temp\Gea9A67.tmp.docx""
What is it that am doing wrong?

Thank you

I am't able to create PDF file

I am getting below issue and my folder has 777 permissions ...Fatal error: Uncaught RuntimeException: Failed to write to file "./dssss.pdf". in /var/www/html/pdf/vendor/gears/pdf/src/Pdf.php:208 Stack trace: #0 /var/www/html/pdf/vendor/gears/pdf/src/Pdf.php(168): Gears\Pdf->save('./dssss.pdf') #1 /var/www/html/pdf/pdf.php(9): Gears\Pdf::convert('./docs.docx', './dssss.pdf') #2 {main} thrown in /var/www/html/pdf/vendor/gears/pdf/src/Pdf.php on line 208

Inside an ellipse shape, elements are not showing in pdf output.

Local environment:
OS: Ubuntu 14.04
Libreoffice: 4.2.8.2

  • Working perfectly. All the shape elements have a value as in the document.

Server environment:
OS: Centos 6.6
Libreoffice: 4.3.7.2

  • Not working perfectly. Inside an ellipse shape, elements are not showing in pdf output.

Docx screenshot:

docx_writer

Pdf screenshot:

pdf_output

Replace block with keeping styles

Hi,

I want to replace block with checkbox xml. Plugin replace block in docx, but styles are set on default. I would like to keep original styles for block. How to do this?

 $tickCheckbox = '
                    <w:sdt>
						<w:sdtPr>
							<w14:checkbox>
								<w14:checked w14:val="'.($strValue ? 1 : 0).'"/>
								<w14:checkedState w14:val="0052" w14:font="Wingdings 2"/>
								<w14:uncheckedState w14:val="2610" w14:font="MS Gothic"/>
							</w14:checkbox>
						</w:sdtPr>';
                if($strValue) {
                    $tickCheckbox .= '		
                        <w:sdtContent>
							<w:p>
								<w:pPr>
									<w:spacing w:line="240" w:lineRule="auto"/>
								</w:pPr>
								<w:r>
									<w:sym w:font="Wingdings 2" w:char="F052"/>
								</w:r>
							</w:p>
						</w:sdtContent>';
                }else {
                    $tickCheckbox .= '
                        <w:sdtContent>
							<w:p>
								<w:pPr>
									<w:spacing w:line="240" w:lineRule="auto"/>
								</w:pPr>
								<w:r>
									<w:rPr>
										<w:rFonts w:ascii="MS Gothic" w:eastAsia="MS Gothic" w:hAnsi="MS Gothic" w:hint="eastAsia"/>
									</w:rPr>
									<w:t>โ˜</w:t>
								</w:r>
							</w:p>
						</w:sdtContent>';
                }
		$tickCheckbox.=	'</w:sdt>';

                $objPdf->replaceBlock($keyName, $checkbox);

PHP7 Compatibility

Tested and working but Gears\String must be replaced to some other name -> "String" is reserved name in php7

Error in gears/di - scalarString

I receive this error when i try to convert a document.

RuntimeException [ 0 ]: Container does not contain: scalarString APPPATH/vendor/gears/di/src/Container.php [ 204 ]

Someone know to resolve this?

The phantomjs command was not found

In vendor/gears/pdf/src/Pdf/Html/Backend.php
We have this code:

if (is_dir(DIR.'/../../../vendor'))
{
$bin = DIR.'/../../../vendor/bin/phantomjs';
}
else
{
$bin = DIR.'/../../../../bin/phantomjs';
}

I think we need to go out one more directory to get into the right place, like this

if (is_dir(DIR.'/../../../../vendor'))
{
$bin = DIR.'/../../../../vendor/bin/phantomjs';
}
else
{
$bin = DIR.'/../../../../../bin/phantomjs';
}

gears/string

Hi brad I have this issues with your library and I dont know what is wrong? Uncaught Error: Class 'Gears\String' not found in /Applications/XAMPP/xamppfiles/htdocs/docx2pdf/vendor/gears/pdf/src/Pdf.php:124 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/docx2pdf/vendor/gears/pdf/src/Pdf.php(161): Gears\Pdf->__construct('/Applications/X...', Array) #1 /Applications/XAMPP/xamppfiles/htdocs/docx2pdf/index.php(6): Gears\Pdf::convert('/Applications/X...') #2 {main} thrown in

Unrecognised document type!

Hey!

Firstly, I got the "same String class" error, but i fixed that.

Than i got this:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unrecognised document type!' in C:\xampp\htdocs\gyak\IBC\PDFGear\vendor\gears\pdf\src\Pdf.php:133 Stack trace: #0 C:\xampp\htdocs\PDFGear\vendor\gears\pdf\src\Pdf.php(161): Gears\Pdf->__construct('/dir/document.d...', Array) #1 C:\xampp\htdocs\PDFGear\index.php(4): Gears\Pdf::convert('/dir/document.d...', 'document.pdf') #2 {main} thrown in C:\xampp\htdocs\PDFGear\vendor\gears\pdf\src\Pdf.php on line 133

My code:

Did I something wrong?

can't insert new line

I can't seem to find a way to insert text that contains a new line character.

I've tried many ways of inserting the new line character, but it never shows up in the generated pdf.

Any solutions?

Incorrect fonts and style

When converting a docx file text doesn't seem to get correct stying or use correct fonts etc. The colo of the text is right, but size and font is wrong. Some images that have styling also seems "cut-off" in the generated PDF.

Gears\String class not found.

The master branch of phpgearbox/string is being refactored (as I'm sure you know) and Gears\String has moved to Gears\String\Str. Can you either be more specific in this library's composer.json or change any instances of use Gears\String as Str; to use Gears\String\Str.

Thanks!

Installation for gears/pdf * is failing on godaddy server

$ composer require gears/pdf:*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: don't install gears/pdf v0.4.1
- Conclusion: don't install gears/pdf v0.4.0
- Conclusion: don't install gears/pdf v0.3.1
- Conclusion: don't install gears/pdf v0.3
- Conclusion: don't install gears/pdf v0.2
- Conclusion: remove symfony/process v3.1.10
- Installation request for gears/pdf * -> satisfiable by gears/pdf[v0.1, v0.2, v0.3, v0.3.1, v0.4.0, v0.4.1].
- Conclusion: don't install symfony/process v3.1.10
- gears/pdf v0.1 requires symfony/process 2.* -> satisfiable by symfony/process[2.0.4, 2.0.5, 2.0.6, 2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.24, v2.0.25, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.3.4, v2.3.40, v2.3.41, v2.3.42, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.28, v2.7.29, v2.7.3, v2.7.30, v2.7.31, v2.7.32, v2.7.33, v2.7.34, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2.8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, v2.8.26, v2.8.27, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
- Can only install one of: symfony/process[2.0.4, v3.1.10].
- Can only install one of: symfony/process[2.0.5, v3.1.10].
- Can only install one of: symfony/process[2.0.6, v3.1.10].
- Can only install one of: symfony/process[2.0.7, v3.1.10].
- Can only install one of: symfony/process[v2.0.10, v3.1.10].
- Can only install one of: symfony/process[v2.0.12, v3.1.10].
- Can only install one of: symfony/process[v2.0.13, v3.1.10].
- Can only install one of: symfony/process[v2.0.14, v3.1.10].
- Can only install one of: symfony/process[v2.0.15, v3.1.10].
- Can only install one of: symfony/process[v2.0.16, v3.1.10].
- Can only install one of: symfony/process[v2.0.17, v3.1.10].
- Can only install one of: symfony/process[v2.0.18, v3.1.10].
- Can only install one of: symfony/process[v2.0.19, v3.1.10].
- Can only install one of: symfony/process[v2.0.20, v3.1.10].
- Can only install one of: symfony/process[v2.0.21, v3.1.10].
- Can only install one of: symfony/process[v2.0.22, v3.1.10].
- Can only install one of: symfony/process[v2.0.23, v3.1.10].
- Can only install one of: symfony/process[v2.0.24, v3.1.10].
- Can only install one of: symfony/process[v2.0.25, v3.1.10].
- Can only install one of: symfony/process[v2.0.9, v3.1.10].
- Can only install one of: symfony/process[v2.1.0, v3.1.10].
- Can only install one of: symfony/process[v2.1.1, v3.1.10].
- Can only install one of: symfony/process[v2.1.10, v3.1.10].
- Can only install one of: symfony/process[v2.1.11, v3.1.10].
- Can only install one of: symfony/process[v2.1.12, v3.1.10].
- Can only install one of: symfony/process[v2.1.13, v3.1.10].
- Can only install one of: symfony/process[v2.1.2, v3.1.10].
- Can only install one of: symfony/process[v2.1.3, v3.1.10].
- Can only install one of: symfony/process[v2.1.4, v3.1.10].
- Can only install one of: symfony/process[v2.1.5, v3.1.10].
- Can only install one of: symfony/process[v2.1.6, v3.1.10].
- Can only install one of: symfony/process[v2.1.7, v3.1.10].
- Can only install one of: symfony/process[v2.1.8, v3.1.10].
- Can only install one of: symfony/process[v2.1.9, v3.1.10].
- Can only install one of: symfony/process[v2.2.0, v3.1.10].
- Can only install one of: symfony/process[v2.2.1, v3.1.10].
- Can only install one of: symfony/process[v2.2.10, v3.1.10].
- Can only install one of: symfony/process[v2.2.11, v3.1.10].
- Can only install one of: symfony/process[v2.2.2, v3.1.10].
- Can only install one of: symfony/process[v2.2.3, v3.1.10].
- Can only install one of: symfony/process[v2.2.4, v3.1.10].
- Can only install one of: symfony/process[v2.2.5, v3.1.10].
- Can only install one of: symfony/process[v2.2.6, v3.1.10].
- Can only install one of: symfony/process[v2.2.7, v3.1.10].
- Can only install one of: symfony/process[v2.2.8, v3.1.10].
- Can only install one of: symfony/process[v2.2.9, v3.1.10].
- Can only install one of: symfony/process[v2.3.0, v3.1.10].
- Can only install one of: symfony/process[v2.3.1, v3.1.10].
- Can only install one of: symfony/process[v2.3.10, v3.1.10].
- Can only install one of: symfony/process[v2.3.11, v3.1.10].
- Can only install one of: symfony/process[v2.3.12, v3.1.10].
- Can only install one of: symfony/process[v2.3.13, v3.1.10].
- Can only install one of: symfony/process[v2.3.14, v3.1.10].
- Can only install one of: symfony/process[v2.3.15, v3.1.10].
- Can only install one of: symfony/process[v2.3.16, v3.1.10].
- Can only install one of: symfony/process[v2.3.17, v3.1.10].
- Can only install one of: symfony/process[v2.3.18, v3.1.10].
- Can only install one of: symfony/process[v2.3.19, v3.1.10].
- Can only install one of: symfony/process[v2.3.2, v3.1.10].
- Can only install one of: symfony/process[v2.3.20, v3.1.10].
- Can only install one of: symfony/process[v2.3.21, v3.1.10].
- Can only install one of: symfony/process[v2.3.22, v3.1.10].
- Can only install one of: symfony/process[v2.3.23, v3.1.10].
- Can only install one of: symfony/process[v2.3.24, v3.1.10].
- Can only install one of: symfony/process[v2.3.25, v3.1.10].
- Can only install one of: symfony/process[v2.3.26, v3.1.10].
- Can only install one of: symfony/process[v2.3.27, v3.1.10].
- Can only install one of: symfony/process[v2.3.28, v3.1.10].
- Can only install one of: symfony/process[v2.3.29, v3.1.10].
- Can only install one of: symfony/process[v2.3.3, v3.1.10].
- Can only install one of: symfony/process[v2.3.30, v3.1.10].
- Can only install one of: symfony/process[v2.3.31, v3.1.10].
- Can only install one of: symfony/process[v2.3.32, v3.1.10].
- Can only install one of: symfony/process[v2.3.33, v3.1.10].
- Can only install one of: symfony/process[v2.3.34, v3.1.10].
- Can only install one of: symfony/process[v2.3.35, v3.1.10].
- Can only install one of: symfony/process[v2.3.36, v3.1.10].
- Can only install one of: symfony/process[v2.3.37, v3.1.10].
- Can only install one of: symfony/process[v2.3.38, v3.1.10].
- Can only install one of: symfony/process[v2.3.39, v3.1.10].
- Can only install one of: symfony/process[v2.3.4, v3.1.10].
- Can only install one of: symfony/process[v2.3.40, v3.1.10].
- Can only install one of: symfony/process[v2.3.41, v3.1.10].
- Can only install one of: symfony/process[v2.3.42, v3.1.10].
- Can only install one of: symfony/process[v2.3.5, v3.1.10].
- Can only install one of: symfony/process[v2.3.6, v3.1.10].
- Can only install one of: symfony/process[v2.3.7, v3.1.10].
- Can only install one of: symfony/process[v2.3.8, v3.1.10].
- Can only install one of: symfony/process[v2.3.9, v3.1.10].
- Can only install one of: symfony/process[v2.4.0, v3.1.10].
- Can only install one of: symfony/process[v2.4.1, v3.1.10].
- Can only install one of: symfony/process[v2.4.10, v3.1.10].
- Can only install one of: symfony/process[v2.4.2, v3.1.10].
- Can only install one of: symfony/process[v2.4.3, v3.1.10].
- Can only install one of: symfony/process[v2.4.4, v3.1.10].
- Can only install one of: symfony/process[v2.4.5, v3.1.10].
- Can only install one of: symfony/process[v2.4.6, v3.1.10].
- Can only install one of: symfony/process[v2.4.7, v3.1.10].
- Can only install one of: symfony/process[v2.4.8, v3.1.10].
- Can only install one of: symfony/process[v2.4.9, v3.1.10].
- Can only install one of: symfony/process[v2.5.0, v3.1.10].
- Can only install one of: symfony/process[v2.5.1, v3.1.10].
- Can only install one of: symfony/process[v2.5.10, v3.1.10].
- Can only install one of: symfony/process[v2.5.11, v3.1.10].
- Can only install one of: symfony/process[v2.5.12, v3.1.10].
- Can only install one of: symfony/process[v2.5.2, v3.1.10].
- Can only install one of: symfony/process[v2.5.3, v3.1.10].
- Can only install one of: symfony/process[v2.5.4, v3.1.10].
- Can only install one of: symfony/process[v2.5.5, v3.1.10].
- Can only install one of: symfony/process[v2.5.6, v3.1.10].
- Can only install one of: symfony/process[v2.5.7, v3.1.10].
- Can only install one of: symfony/process[v2.5.8, v3.1.10].
- Can only install one of: symfony/process[v2.5.9, v3.1.10].
- Can only install one of: symfony/process[v2.6.0, v3.1.10].
- Can only install one of: symfony/process[v2.6.1, v3.1.10].
- Can only install one of: symfony/process[v2.6.10, v3.1.10].
- Can only install one of: symfony/process[v2.6.11, v3.1.10].
- Can only install one of: symfony/process[v2.6.12, v3.1.10].
- Can only install one of: symfony/process[v2.6.13, v3.1.10].
- Can only install one of: symfony/process[v2.6.2, v3.1.10].
- Can only install one of: symfony/process[v2.6.3, v3.1.10].
- Can only install one of: symfony/process[v2.6.4, v3.1.10].
- Can only install one of: symfony/process[v2.6.5, v3.1.10].
- Can only install one of: symfony/process[v2.6.6, v3.1.10].
- Can only install one of: symfony/process[v2.6.7, v3.1.10].
- Can only install one of: symfony/process[v2.6.8, v3.1.10].
- Can only install one of: symfony/process[v2.6.9, v3.1.10].
- Can only install one of: symfony/process[v2.7.0, v3.1.10].
- Can only install one of: symfony/process[v2.7.1, v3.1.10].
- Can only install one of: symfony/process[v2.7.10, v3.1.10].
- Can only install one of: symfony/process[v2.7.11, v3.1.10].
- Can only install one of: symfony/process[v2.7.12, v3.1.10].
- Can only install one of: symfony/process[v2.7.13, v3.1.10].
- Can only install one of: symfony/process[v2.7.14, v3.1.10].
- Can only install one of: symfony/process[v2.7.15, v3.1.10].
- Can only install one of: symfony/process[v2.7.16, v3.1.10].
- Can only install one of: symfony/process[v2.7.17, v3.1.10].
- Can only install one of: symfony/process[v2.7.18, v3.1.10].
- Can only install one of: symfony/process[v2.7.19, v3.1.10].
- Can only install one of: symfony/process[v2.7.2, v3.1.10].
- Can only install one of: symfony/process[v2.7.20, v3.1.10].
- Can only install one of: symfony/process[v2.7.21, v3.1.10].
- Can only install one of: symfony/process[v2.7.22, v3.1.10].
- Can only install one of: symfony/process[v2.7.23, v3.1.10].
- Can only install one of: symfony/process[v2.7.24, v3.1.10].
- Can only install one of: symfony/process[v2.7.25, v3.1.10].
- Can only install one of: symfony/process[v2.7.26, v3.1.10].
- Can only install one of: symfony/process[v2.7.27, v3.1.10].
- Can only install one of: symfony/process[v2.7.28, v3.1.10].
- Can only install one of: symfony/process[v2.7.29, v3.1.10].
- Can only install one of: symfony/process[v2.7.3, v3.1.10].
- Can only install one of: symfony/process[v2.7.30, v3.1.10].
- Can only install one of: symfony/process[v2.7.31, v3.1.10].
- Can only install one of: symfony/process[v2.7.32, v3.1.10].
- Can only install one of: symfony/process[v2.7.33, v3.1.10].
- Can only install one of: symfony/process[v2.7.34, v3.1.10].
- Can only install one of: symfony/process[v2.7.4, v3.1.10].
- Can only install one of: symfony/process[v2.7.5, v3.1.10].
- Can only install one of: symfony/process[v2.7.6, v3.1.10].
- Can only install one of: symfony/process[v2.7.7, v3.1.10].
- Can only install one of: symfony/process[v2.7.8, v3.1.10].
- Can only install one of: symfony/process[v2.7.9, v3.1.10].
- Can only install one of: symfony/process[v2.8.0, v3.1.10].
- Can only install one of: symfony/process[v2.8.1, v3.1.10].
- Can only install one of: symfony/process[v2.8.10, v3.1.10].
- Can only install one of: symfony/process[v2.8.11, v3.1.10].
- Can only install one of: symfony/process[v2.8.12, v3.1.10].
- Can only install one of: symfony/process[v2.8.13, v3.1.10].
- Can only install one of: symfony/process[v2.8.14, v3.1.10].
- Can only install one of: symfony/process[v2.8.15, v3.1.10].
- Can only install one of: symfony/process[v2.8.16, v3.1.10].
- Can only install one of: symfony/process[v2.8.17, v3.1.10].
- Can only install one of: symfony/process[v2.8.18, v3.1.10].
- Can only install one of: symfony/process[v2.8.19, v3.1.10].
- Can only install one of: symfony/process[v2.8.2, v3.1.10].
- Can only install one of: symfony/process[v2.8.20, v3.1.10].
- Can only install one of: symfony/process[v2.8.21, v3.1.10].
- Can only install one of: symfony/process[v2.8.22, v3.1.10].
- Can only install one of: symfony/process[v2.8.23, v3.1.10].
- Can only install one of: symfony/process[v2.8.24, v3.1.10].
- Can only install one of: symfony/process[v2.8.25, v3.1.10].
- Can only install one of: symfony/process[v2.8.26, v3.1.10].
- Can only install one of: symfony/process[v2.8.27, v3.1.10].
- Can only install one of: symfony/process[v2.8.3, v3.1.10].
- Can only install one of: symfony/process[v2.8.4, v3.1.10].
- Can only install one of: symfony/process[v2.8.5, v3.1.10].
- Can only install one of: symfony/process[v2.8.6, v3.1.10].
- Can only install one of: symfony/process[v2.8.7, v3.1.10].
- Can only install one of: symfony/process[v2.8.8, v3.1.10].
- Can only install one of: symfony/process[v2.8.9, v3.1.10].
- Installation request for symfony/process (locked at v3.1.10) -> satisfiable by symfony/process[v3.1.10].

Installation failed, reverting ./composer.json to its original content.

Pls update with newer Version of Symfony

Problem 1 - Installation request for gears/pdf ^0.4.1 -> satisfiable by gears/pdf[v0.4.1]. - Conclusion: remove symfony/symfony v3.2.13 - Conclusion: don't install symfony/symfony v3.2.13

Gives error on PHP 7 when converting docx to PDF

Here is the message for your reference
FatalErrorException in String.php line 16:
Cannot use 'String' as class name as it is reserved
in String.php line 16
vendor/gears/string/src/String.php

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.