Hi,
We got this error when trying to draw the document to a file.
at zz93.c2.a(Byte[] A_0)
at ceTe.DynamicPDF.IO.OperatorWriter.Write_TJ(Char[] textArray, Int32 start, Int32 length, Single wordSpacing, Boolean rightToLeft)
at ceTe.DynamicPDF.PageElements.FormattedTextArea.a(PageWriter A_0, FormattedTextAreaStyle A_1, Int32 A_2, Int32 A_3, Single A_4)
at ceTe.DynamicPDF.PageElements.FormattedTextArea.DrawRotated(PageWriter writer)
at ceTe.DynamicPDF.PageElements.RotatingPageElement.Draw(PageWriter writer)
at ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer)
at ceTe.DynamicPDF.PageElements.Cell2.a(hm A_0, Int32 A_1)
at ceTe.DynamicPDF.PageElements.Row2.a(hm A_0, Boolean A_1, Int32 A_2)
at ceTe.DynamicPDF.PageElements.Row2List.a(Int32 A_0, hm A_1, Boolean A_2)
at ceTe.DynamicPDF.PageElements.Row2List.a(hm A_0, Boolean A_1, Single A_2, Single A_3, Table2 A_4, Boolean A_5)
at ceTe.DynamicPDF.PageElements.Table2.DrawRotated(PageWriter writer)
at ceTe.DynamicPDF.PageElements.RotatingPageElement.Draw(PageWriter writer)
at ceTe.DynamicPDF.PageElements.Group.Draw(PageWriter writer)
at ceTe.DynamicPDF.Page.c(PageWriter A_0)
at ceTe.DynamicPDF.Page.DrawEntries(DocumentWriter writer, Int32 pageNumber, Int32 sectionPageNumber)
at ceTe.DynamicPDF.Page.a(DocumentWriter A_0, Int32 A_1, Int32 A_2, Int32 A_3)
at zz93.c4.d(Int32 A_0)
at zz93.c4.r()
at ceTe.DynamicPDF.Document.Draw(Stream stream)
at MPNG.Library.Report.GetReport_SortingGrouping_MP5(String URL, String userCountry, String prospectIDs, String groupBy, Boolean groupAsc, String sortBy, Boolean sortAsc, Int32 userID, String currencyPrefix, String enquiryMessage, String mmlogofullpath, String mediaOutletLogoPath, String clientLogofullPath, String pressThumbnailPath, String timeZoneTo, String reportTitle, String executiveSummary, ReportOption option, String& errorMsg, Int32[] manuallyOrderedProspects, Boolean& hasContent, List`1& corruptedMediaItems) in D:\TFS\MP6\Mediaportal Web\Shared Libraries\MPNG.Library\Source\Report.cs:line 1080
at PDFProcessingQueue.PDFProcessingQueueService.ProcessMonitorReport(InputQueue inputQueue, List`1& corruptedMediaItems, String& filePathAbs, String& filePathRel, Boolean& hasContent, String& errorMessage, Boolean& hasNoPage)
Index was outside the bounds of the array
Re: Index was outside the bounds of the array
Support · Apr 7, 2014Hello,
Can you please try using the latest version 7 DynamicPDF DLL file in your application and see if it works for you? You can download latest v7 product by logging into our CustomerArea
using your v7 product serial number.
If you are evaluating the product then you can download the latest v7 product from our website here
.
Remove reference for the older DLL file and reference the latest in your application. If you continue getting the error then please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] team so that they can look into it further.
1.Sample code or project that uses static data to recreate the error.
2.Exact version and build number of the DynamicPDF DLL file. You can get this information using the Visual Studio References properties (Description) of the DynamicPDF DLL file.
Thanks,
ceTe Software Support Team.
Re: Index was outside the bounds of the array
Forum member · Apr 7, 2014Hi,
There is one thing that I don't understand, why the function is calling at ceTe.DynamicPDF.PageElements.RotatingPageElement.Draw(PageWriter writer) rotating page element?
I believe I did not code anything related to rotating?
Re: Index was outside the bounds of the array
Support · Apr 8, 2014Hello,
The page elements like Table2, Label, Rectangle, FormattedTextArea, TextArea, etc. are derived from a class called RotatingPageElement. The DynamicPDF API internally uses Draw method of RotatingPageElement to write these page elements to the PDF. Please refer to the documentation on Table2 class here
.
Please try using the latest DynamicPDF DLL file in your application and if you continue getting the error then please send over the sample code or project that uses static data to recreate the error and also the exact version and build number of the DynamicPDF DLL file to our [^a|mailto:support@cete.com|opennewwindow|support ^] team so that they can look into it further.
Thanks,
ceTe Software Support
Re: Index was outside the bounds of the array
Forum member · Apr 8, 2014Hi,
We are using the latest version, after some detail checking, we notice that when we supply the formattedtextarea with a text that contain some extra spaces between text, it caused this error.
So our solution is remove those extra spaces and the problem solved. Still strange that the extra spaces will caused this error.
Re: Index was outside the bounds of the array
Support · Apr 8, 2014Hello,
We have not seen this kind of behavior while using our DynamicPDF API. Please send over the sample code so we can recreate the error and look into it further. Also please note that it is difficult to troubleshoot the error without recreating it on our end.
Thanks,
ceTe Software Support Team.
Re: Index was outside the bounds of the array
Forum member · Jun 5, 2014I am a v 6 customer - evaluating Merger v 7 (.net 4). My goal is to read folders of existing PDFs; use the Mergers.pdfdocument.getText method; then search the return string for key terms.
I have a small group of documents (out of thousands) that get the error: "Index was outside the bounds of the array"
or
"Length cannot be less than zero. Parameter name: length"
At first I thought these documents might not have been OCRd; but examining them; they are completely searchable within Adobe. They are not in any readOnly form.
Neither error has any innerExeption.
Both errors list Data: {System.Collections.ListDictionaryInternal}
source mscorlib
Keys: {System.Collections.ListDictionaryInternal}
Stack Trace sample of the "array" error
at System.Text.StringBuilder.get_Chars(Int32 index)
at zz93.gq.a(Single A_0, String A_1, Single A_2, Single A_3, Single A_4, go A_5, String A_6, StringBuilder& A_7)
at zz93.gq.a(Int32 A_0)
at ceTe.DynamicPDF.Merger.PdfDocument.GetText()
at ceTe_MergeClean.Program.processAFile(FileInfo fl) in C:\localCopy\ceTe_formCleanUp\ceTe_formCleanUp\ceTe_MergeClean\Program.cs:line 87
Stack Trace sample of the "length" error
at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
at ceTe.DynamicPDF.Merger.PdfDocument.GetText()
at ceTe_MergeClean.Program.processAFile(FileInfo fl) in C:\localCopy\ceTe_formCleanUp\ceTe_formCleanUp\ceTe_MergeClean\Program.cs:line 87
Re: Index was outside the bounds of the array
Support · Jun 5, 2014Hello,
Can you please send over the following details to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so that we can look into it further?
1.Input PDFs using which you are getting error.
2.Exact version and build number of the DynamicPDF DLL file. You can get this information in the DLL reference properties (Version and Description fields) in Visual Studio.
3.Sample code used for merging and text extraction.
Thanks,
ceTe Software Support Team.