PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Problems in E-Mail preview on Apple devices after edit
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4545
Page 1 of 1

Author:  DirkS [ Mon Feb 05, 2024 8:23 am ]
Post subject:  Problems in E-Mail preview on Apple devices after edit

Hi,
I'm struggeling with a problem on Apple devices.
I used PdfSharp to update PDF forms (textfields). But when we send this files via email to an Apple device then the preview in Mail app is showing "old" content.
I analysed the problem and it seems that Apple will not look into the current content they look into to stream which is referted to the textfield.
But the content in the stream is not updated. I can search the associated stream and can manipulate the string but I guess this this not the right way.
The associated stream can only be found in the Internals.GetAllObjects() (dictionary(id=(11 0),[6])=key=6:(/BBox /Filter /Length /Resources /Subtype /Type))
/BBox is the array with coordinates of the textfield
/Filter is /FlatDecode
/Length is 125 (length of stream)
/Resource is "dictionary(id=(0 0),[1])=key=1:(/Font)"
/Subtype is /Form
/Type is /XObject

Content of stream:
Code:
{0 0 0 RG 1 w
.5 .5 149 21 re S
/Tx BMC
q
1 1 148 20 re W n
BT
0 g 0 Tc 0 Tw 100 Tz 0 Tr/Helv 17.9 Tf 2 4.7976 Td
(\(TEST123\))Tj
ET
Q
EMC
}


"(TEST123)" is the value of the textfield.
Hope someone can give me a hint.
Kind regards
Dirk

Author:  TH-Soft [ Mon Feb 05, 2024 9:43 am ]
Post subject:  Re: Problems in E-Mail preview on Apple devices after edit

PDFsharp does not fully support AcroForms and it is up to you to update the representation of the form fields.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/