PSWritePDF icon indicating copy to clipboard operation
PSWritePDF copied to clipboard

Add table or add text into existing pdf

Open ericxin1982 opened this issue 3 years ago • 2 comments

hi,

I am wondering how to add text or table into existing pdf, not write txt or table into new pdf.

Thanks Eric Xin

ericxin1982 avatar Jul 27 '22 09:07 ericxin1982

Unfortunately I don't know. But you should start like that ... and then go thru $PDF variable

Import-Module .\PSWritePDF.psd1 -Force

$FilePath = "$PSSCriptRoot\Example12.ReadingTable.pdf"
$PDF = Get-PDF -FilePath $FilePath
$PDF
Close-PDF -Document $PDF

I tried finding some c# docs around itext 7 how to find an existing table - and failed. Maybe you will have more luck.

PrzemyslawKlys avatar Jul 27 '22 18:07 PrzemyslawKlys

@PrzemyslawKlys

Sorry, I meant add text into an existing pdf, not must have especially a table object.

Thanks Eric Xin

ericxin1982 avatar Jul 28 '22 01:07 ericxin1982