This could be the same problem.
GaryR wrote:
I did some more testing and it appears that the "only" time the pages get blanked out when adding a password to the PDF file using the PdfSharp-WPF assembly is when the file was created by exporting from the SQL Report Viewer.
Not sure if this is the same problem, but maybe it helps to disable compression.
See here:
viewtopic.php?p=1613#p1613ballinator wrote:
For the DeviceSettings parameter for the Render method on the ReportExecutionService object, pass this value:
theDeviceSettings = "<DeviceInfo><HumanReadablePDF>True</HumanReadablePDF></DeviceInfo>";
This disables PDF file compression for SSRS 2008. Then, PDFSharp is able to handle the resulting uncompressed PDF file. (Note: SSRS 2005 ignores this setting so it can be passed to both SSRS versions.)
Maybe a change in PDFsharp can help.
See here:
viewtopic.php?p=3611#p3611