Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi!

I have many XPS files that fist pages is blank.
How can i change these thumbnail to anothther (custome) page via c#?

TNX!
Posted

1 solution

1. Extract XPS File to your own temp folder
2. Replace original thumbnail file with new custom
for example in my project :
const string thumbFile = @"\Documents\1\Metadata\Page1_Thumbnail.JPG";

3. Repack all content of temp to new XPS via Zip.


_______________________________________________________
I'm iranian and my Language is Persian.
Sorry if my English is very Poor!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900