Hello,
I'm using PowerBuilder 2022 build 1892.
I generate a PDF using the code below :
PDFDocument lpdf_doc
long ll_return, ll_return1
lpdf_doc = Create PDFDocument
dw_1.Modify("DataWindow.Export.PDF.Method = NativePDF! ")
dw_1.modify("DataWindow.Export.PDF.NativePDF.PDFStandard =4")
lpdf_doc.importdatawindow( dw_1 )
lpdf_doc.properties.keywords = "my-keywords"
ll_return1 = lpdf_doc.save( "C:\PDF\datawindow.pdf", PDFA_3b!)
destroy lpdf_doc
Then I try to read the keywords with the code below :
PDFDocument lpdf_doc
long ll_return
string ls_test
lpdf_doc = Create PDFDocument
ll_return = lpdf_doc.importpdf( "C:\PDF\datawindow.pdf")
ls_test = lpdf_doc.properties.keywords
MessageBox("Keywords", ls_test )
destroy lpdf_doc
But unfortunately, my local variable is empty and the IDE crash after that.
So I'm asking just in case, is it possible to read the metadata from an existing pdf ?
It's not ideal, but it will suffice until we update our version of PB2022.