Rank: Advanced Member
Groups: Registered
Joined: 10/13/2017(UTC) Posts: 52  Location: Freiburg Thanks: 3 times
|
Hi, I' showing in a pdfviewer control a pdf formular file and set some field values. When I save the document with this.pdfViewer.Document.Save("c:\temp\x.pdf") I'll get a pdf with empty fields. How this is working? Hi, ok I figured out, that the problem is the pdf file. I attached it. When I open it in patagames pdfviewer and fill some fields, save it with document.save(), the saved file don't have the field values. Acorbat can do it. When open in acrobat, fill some fields and save it under other file name, this file has the values... Is it also possible in patagames? Thanks for yo  WRF2018_9010.pdf (1,536kb) downloaded 2 time(s).ur time. Regards Peter Edited by user Thursday, October 25, 2018 5:20:12 AM(UTC)
| Reason: some changes
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
I have checked your document. Everything works fine. Please use the following code for saving Code:SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Pdf files (*.pdf)|*.pdf";
if (sfd.ShowDialog() == DialogResult.OK)
{
pdfViewer1.Document.FormFill.ForceToKillFocus();
pdfViewer1.Document.Save(sfd.FileName, SaveFlags.NoIncremental);
}
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/13/2017(UTC) Posts: 52  Location: Freiburg Thanks: 3 times
|
Hi Paul, thank you for your time! But sorry, it's not working. In the saved file the values of the form fields are empty. Perhaps you have another idea.
Regards Peter
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Seems the file has broken structure. So Adobe can't display saved fields, but PdfViewer and Foxit can.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
By the way Adobe acrobat reader notify me that the forms cannot be saved. Please look at this  SavingAcroFields.png (120kb) downloaded 7 time(s).
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close