Dear Betsy,
thank you for your quick reply.
Sorry, I'm in hurry cause I have to go to exactely that customer having to declare why I'm late with my solution
Anyway, I checked out your code with attachment files and I figure out, that you didn't use my PDF file (attached to previous post) in order to test the situation. (guess with doc created by Spier.PDF there will be no problem)
But please try the following (as I'm trying all time long):
Dim doc As PdfDocument = New PdfDocument()
doc.LoadFromFile(My.Settings.FileTemplate & "\" & PdfTemplate, FileFormat.PDF) '<--- this is file, attached previous post
Dim form As PdfFormWidget '<--- need for read/write form data
Dim data As Byte() = File.ReadAllBytes("G:\Dropbox\90-VisualStudio\10-PCIplus\PCIplus13001\PDFAnhangOrdner\11-AVI-2-1.jpg")
Dim attach1 As New PdfAttachment("00-NoImage.jpg", data)
Dim data2 As Byte() = File.ReadAllBytes("G:\Dropbox\90-VisualStudio\10-PCIplus\PCIplus13001\PDFExportEigen\EIN-17.09.2017-138-8-1.pdf")
Dim attach2 As New PdfAttachment("test.pdf", data2)
doc.Attachments.Add(attach1)
doc.Attachments.Add(attach2)
Please try adding attachments to my PDF which is done as template in Acrobat DC.
I'll investigate this better when I'll be back from customer today evening my time.
Thank you very much!
Franz