logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
paleise  
#1 Posted : Thursday, October 25, 2018 3:21:45 AM(UTC)
paleise

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2017(UTC)
Posts: 52
Germany
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

Paul Rayman  
#2 Posted : Friday, October 26, 2018 12:43:49 AM(UTC)
Paul Rayman

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);
}
paleise  
#3 Posted : Friday, October 26, 2018 12:59:57 AM(UTC)
paleise

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2017(UTC)
Posts: 52
Germany
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
Paul Rayman  
#4 Posted : Friday, October 26, 2018 1:17:28 AM(UTC)
Paul Rayman

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.
Paul Rayman  
#5 Posted : Friday, October 26, 2018 1:23:21 AM(UTC)
Paul Rayman

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).
Users browsing this topic
Guest (2)
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.