This is a migrated thread and some comments may be shown as answers.

Replace PDF export doesn't work

1 Answer 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 05 May 2016, 03:57 PM

Hi All,

Pdf export fails when I export to an existing file that contains watermark. 

Steps to get this issue.

Say I have a document exported (formatProvider.Export(document, stream);) in to pdf and save it. Open the saved pdf file, add a water mark in the pdf and save it.

Export the document again, when it prompts for save, point it to the same pdf file that contains water mark and replace the file.It pretends likethe file is exported with the latest content but it fails. 

 On exporting if a new file name is given or pointed to the file that doesn't contain the water mark the content is exported. Could you please suggest is this is a known bug or am I missing some thing ?

Thanks

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 09 May 2016, 12:22 PM
Hello Anand,

The provided information seems to be related to Telerik Ui for WPF PdfProcessing libraries and how the file is saved. Please create a check whether the file with the selected name exists before saving the new one. Check also the read/write permission granted to the application.

Also test if the content of the PDF file e.g. watermarks and other settings cause different behavior on saving the file to as an existing file or to a new file.


If you need further help, please open a separate thread in the corresponding product's forum. In your post, specify this thread and elaborate how you generate the PDF content and let us know the results of the above suggested tests.

Thank you for your cooperation.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Anand
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or