Questions tagged [phpoffice]

PHPOffice is an open-source collection of libraries used for reading and writing files in formats compatible with various "office" suites, such as Microsoft Office and OpenOffice.

242 questions
0
votes
0 answers

PHP ZipArchive strips tags from XML

Expectation I have an ODT file containing the following content.xml:
shaedrich
  • 5,457
  • 3
  • 26
  • 42
0
votes
1 answer

PHPSpreadsheet Issue with Excel to MariaDB

I want to upload data from cells from a excel template to my mariadb lamp stack. I am using PHPSpreadsheet to read the cells. i got some problems with the library syntax. the server connection/db connections is working fine and i can insert some…
alb
  • 47
  • 7
0
votes
1 answer

The file PhpOffice\PhpWord\TemplateProcessor.php is missing in the includes folder

Im creating a custom php project that export docx file using https://github.com/PHPOffice/PHPWord. After successfully testing it on my localhost, i deployed it in the server, but unfortunately, im receiving this error: The file…
0
votes
0 answers

phpspreadsheet error in save image from pre-made excel file into new file

I want to use phpspreadsheet to read a pre-made Excel file and modify it and give it to the user to download. (PhpSpreadsheet version is 1.18 and my php version is 7.4) There is also a company logo in this pre-made file, but when I want to save the…
Hamed
  • 313
  • 2
  • 15
0
votes
0 answers

Is it possible to use php spreadsheet without composer?

Is it possible to run php spreadsheet without composer? If there is, how to do it?
0
votes
1 answer

Adding multiple links to one cell using PHPSpreadsheet

I am trying to export some data gathered by webforms, and match it up with one or more files included for each webform. My chosen format is .xls not .xlsx for backwards compatibility. I've learned here, and on the internet in general, that multiple…
turbopipp
  • 1,245
  • 2
  • 14
  • 27
0
votes
1 answer

Manually installing phpoffice

I have to install phpoffice/phpspreadsheet without composer since we are on shared hosting and composer does not seem to be installed there. I tried the following: add the folder src/phpspreadsheet of the plugin…
0
votes
2 answers

Convertion Failure! Contact Server Admin. Error using OfficeConverter

I wan´t to convert a .docx file into PDF. If I use The PhpOffice\PhpWord Libraries, i lose my styles, so i have tried with OfficeConverter, but i have this error: "Convertion Failure! Contact Server Admin." I have this in my Controller …
0
votes
1 answer

PhpOffice-PhpPresentation : Row height issue on creating PPT with tables

I am writing code on PHP for creating a PPT document. In this, I am showing data in table format all is good except for one issue. For the large string in a cell height of the row is resizing automatically while I set 40px height at the time of row…
Surya prakash Patel
  • 1,512
  • 2
  • 24
  • 38
0
votes
0 answers

Using Require and then Use in a class

I am trying to create an excel file by invoking a class. This is a class that I have written and inside this class, I am trying to invoke the PHPOFFICE library that is already installed on my system. My code is as follows: class createXls { …
coderatlarge
  • 577
  • 3
  • 8
  • 23
0
votes
1 answer

PhpOffice convert excel to json

I am trying to convert an excel file to a specific json output, using PhpOffice (PhpSpreadsheet) library. The excel sheet looks like this: and i am looking to achieve this json_encode: { "As24 sheet": [ { "Contract": "656203", …
gogu
  • 613
  • 1
  • 9
  • 19
0
votes
0 answers

Phpoffice library cannot write more than 14 digit numbers

$sheet->setCellValue("H221", $task->amount); //42.1234567894123 But writes "42.123456789412" Excell cell image
0
votes
0 answers

PHPOffice/PHPWord heading tag not display in Correct font sizes in word document

I am working in symfony PHPOffice/PHPWord document download application. I get document template from the database which has been created previously. for my sample testing I have used

user2552863
  • 483
  • 3
  • 10
  • 18

0
votes
1 answer

How Convert HTML content and Special Characters to Html entity

I am working with phpOffice/phpword document download. When I pass the content to the document download the content is like this,

& operation check

< operation check

> operation check

I want to change special character and…
user2552863
  • 483
  • 3
  • 10
  • 18
0
votes
0 answers

phpOffice/phpWord php is_file() for remote jpg get always false

I am working with phpoffice/phpword downloading document as docx. I want to add a remote image for my document passging src as the image url. https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg this is the image url. In my…
user2552863
  • 483
  • 3
  • 10
  • 18