Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect font color read from xlsx #3464

Closed
1 of 8 tasks
anhoder opened this issue Mar 18, 2023 · 0 comments · Fixed by #3465
Closed
1 of 8 tasks

Incorrect font color read from xlsx #3464

anhoder opened this issue Mar 18, 2023 · 0 comments · Fixed by #3465

Comments

@anhoder
Copy link
Contributor

anhoder commented Mar 18, 2023

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

The styles of the two files should be consistent.

What is the current behavior?

image

image

What are the steps to reproduce?

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

require './vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\IOFactory;

$path = '/Users/anhoder/Desktop/a.xlsx';
$inputFileType = IOFactory::identify($path);
$objReader = IOFactory::createReader($inputFileType);
$objReader->setReadEmptyCells(false);

$sheet = $objReader->load($path);

$writer = IOFactory::createWriter($sheet, 'Xlsx');
$writer->save('/Users/anhoder/Desktop/b.xlsx');

Example files:

a.xlsx

b.xlsx

What features do you think are causing the issue

  • Reader
  • Writer
  • Styles
  • Data Validations
  • Formula Calculations
  • Charts
  • AutoFilter
  • Form Elements

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

Xlsx

Which versions of PhpSpreadsheet and PHP are affected?

PHP 8.0.28 (cli)
phpoffice/phpspreadsheet: 1.28.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant