Skip to content

PDF-Generation don't respect condtional formatting #1375

@Collie-IT

Description

@Collie-IT

This is:

- [x ] a bug report
- [x ] 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?

PDF generation should respect the conditonal formating rules. The PDF should look like following Picture.
2020-02-19_18h20_21

The Examplefile is:

ExampleFormatting.xlsx

What is the current behavior?

The PDF don't has the condtional bold formatting. Like shown in the following image:

2020-02-19_18h25_21

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 __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$reader =  \PhpOffice\PhpSpreadsheet\IOFactory::createReader("Xlsx");
$spreadsheet = $reader->load(<PATH TO XLSX>);
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Tcpdf');
$writer->save(<TARGET PATH>);
// add code that show the issue here...

Which versions of PhpSpreadsheet and PHP are affected?

current PhpSpreadsheet php 7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions