Specified cast is not valid

Specified cast is not valid

Forum member · Feb 15, 2007
Using Developer Edition Build 61129 ceTe.DynamicPDF.10.dll, I am getting a Invalid Cast Exception error being thrown when trying to append a list of PDF files together. Here is the stack trace that I am getting.. at zz93cc.a(zz93f A_0) at zz93cc.b(zz93f A_0) at ceTe.DynamicPDF.Merger.PdfPage.a() at ceTe.DynamicPDF.Merger.PdfPage.d() at ceTe.DynamicPDF.Merger.AppendedPage..ctor(PdfPage A_0, zz93ch A_1) at zz93ch.a(Int32 A_0, Int32 A_1) at ceTe.DynamicPDF.Merger.MergeDocument.a(PdfDocument A_0, Int32 A_1, Int32 A_2, zz93ch A_3, Boolean A_4) at ceTe.DynamicPDF.Merger.MergeDocument.Append(PdfDocument pdfDocument, MergeOptions options) at ceTe.DynamicPDF.Merger.MergeDocument.Append(String filePath) at DirectoryCollater.CollatePDF.CollateFiles(String sourceDirectory, String targetPathFile, Boolean IncludeXML) If I take the same list of files and build a single PDF file using Acrobat 7 I do not have any problems. Is there something that I can look at to try to identify the root cause of this issue.

Re: Specified cast is not valid

Support · Feb 15, 2007
The first thing we will always recommend doing is to make sure that you are using the very latest build of our DLL files. This way we can make sure that this issue is not related to a previously addressed problem. Log into the Customer Area, http://www.DynamicPDF.com/CustomerArea and make sure to download the MSI there (the current latest version is Build 70116. While referencing this build's DLL run your app and see if you are still getting the same issue. If you do still get the same problem please send, the PDF files you are using, the code used to merge them along with the full stack trace of the error you are getting over to [^a|mailto:support@cete.com|support@cete.com^]. Also, please reference this forum post. Thanks, ceTe Software Support Team