This project is read-only.

Error when preview pdf


When i view a pdf document i receive this error.

Could not cast value of type 'System.String' to 'System.Byte[]'

Help me please

file attachments


kozw wrote Feb 7, 2014 at 9:24 PM

This most likely indicate an unsupported PDF document. Care to share this particular PDF file. Send to support [at]

wrote Feb 18, 2014 at 4:36 PM

JOSEMIGUELSIMOES wrote Feb 18, 2014 at 4:36 PM


kozw wrote Feb 18, 2014 at 9:03 PM

Looks like this PDF document uses an encoding that is not supported by Document Toolkit. There are no plans to further improve the PDF renderer. As an alternative you can use the XPS format, which is fully supported by Document Toolkit.

JOSEMIGUELSIMOES wrote Feb 18, 2014 at 11:49 PM

Ok, it's possible convert pdf in to xps automatically

kozw wrote Feb 19, 2014 at 12:15 AM

Such functionality is not provided by Document Toolkit. You'll need to use a 3rd party solution, I'm not sure if they exist. Maybe the software generating your PDFs are capable of generating XPS documents?