Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,
I've found strange behavior of your sample, probably a bug.
I'm exporting only the first page, with this code change:

//BitmapSource[] image = pdfviewercontrol.ExportAsImage(0, pdfviewercontrol.LoadedDocument.Pages.Count - 1);
BitmapSource[] image = new[] { pdfviewercontrol.ExportAsImage(0) }; 

Follow these steps:

  1. Run the sample
  2. Add textbox annotation
  3. Click ExportToImage button 
In the resulting image you'll see the text box twice. See attached file - image and also edited pdf. If you open this pdf and just export to image, you'll see again two text boxes. In the preview it is OK - only once.

Strange part is when you change the export method to this:
BitmapSource[] image = pdfviewercontrol.ExportAsImage(0, 0);

all works fine again. So I think the problem is only in ExportAsImage method with one parameter.

Have a look on it please.

Attachment: files_9899146c.zip