1
Vote

Error when preview pdf

description

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

comments

kozw wrote Feb 7, 2014 at 8:24 PM

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

wrote Feb 18, 2014 at 3:36 PM

JOSEMIGUELSIMOES wrote Feb 18, 2014 at 3:36 PM

Document

kozw wrote Feb 18, 2014 at 8: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 10:49 PM

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

kozw wrote Feb 18, 2014 at 11:15 PM

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?