Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2634

Add Attachment file to PDF

$
0
0

Hi all,
I use Delphi 10.3 with PDF creator com object to create PDF, everything works perfectly. Now I like to add attachment files to PDF by adding these command

  PdfJob.SetProfileSetting('AttachmentPage.Enabled', 'true');
  PdfJob.SetProfileSetting('AttachmentPage.Files', 'd:\filelist.xml');

The program will raised exception class EOleException with message "Invalid cast from 'System.String' to 'System.collections.Generic.List'
[[System.String, mscorlib, version = 4.0.0.0, Culture=neutral, PublicKey Token=b77a5c561934e089]]"

Please advise how to fix it.

Thank you.

Regards,
Pitak

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>