EvotecIT / PSWritePDF

PowerShell Module to create, edit, split, merge PDF files on Windows / Linux and MacOS
GNU Affero General Public License v3.0
190 stars 21 forks source link

Incorrect display of hashtables #7

Closed Greyland99 closed 4 years ago

Greyland99 commented 4 years ago

Hi, I have been working with 'New-PDFTable' and noticed a very unusual behavior. While the examples worked perfectly, my own code did not work. If I manually inserted something into $DataTable2, it worked again. If the variable was adjusted, not anymore.

As far as I could see the problem is in the function 'New-InteralPDFTable' and the line '[Array] $TemporaryTable = foreach ($_ in $DataTable2) {'

the function must be changed to '[Array] $TemporaryTable = foreach ($_ in $DataTable) {'

So far it seems to be working. Can you verify the error?

PrzemyslawKlys commented 4 years ago

Ye, sure - it seems like a mistake. Will fix. Thank you for reporting.

PrzemyslawKlys commented 4 years ago

Silly little mistake - it was working because an example had DataTable2 as a name. Published new, signed version. Please test and come back if something doesn't work.

Greyland99 commented 4 years ago

I thought that this was the reason. Will test it tomorrow.