We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting error Cannot access a disposed object. Object name: 'PageCollection'

Suddenly getting the following error - Cannot access a disposed object.
Object name: ‘PageCollection’.
Stack Trace -
at Aspose.Pdf.PageCollection.#=zZ5NMinQbA29K()
at Aspose.Pdf.PageCollection.Add()
at Markers.Api.Assessment.Controllers.TranscriptReportCardController.GenerateTranscriptReportCardForEveryStudent(List`1 transcriptStudentWiseDatas, String template) in \Controllers\TranscriptReportCardController.cs:line 136
Code :
license.SetLicense(@“Aspose.PDF.NET.lic”);
var document = new Aspose.Pdf.Document
{
PageInfo = new PageInfo { Margin = new MarginInfo(28, 28, 28, 18) }
};
var pdfPage = document.Pages.Add(); // Getting error from this line
Please suggest.
Chandan

Hi,
I have solve the previous issue just adding the IsLandscape property
PageInfo = new PageInfo { Margin = new MarginInfo(28, 28, 28, 18), IsLandscape = false }
But now getting following issue when I try to save the document
Error:
Index was outside the bounds of the array.
Stack Trace:
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zp1J5dLiPKVKHGnOVMBY$r60=.#=zpEcLAAyRmB6W05ZPiaegQ04hYfsC(Tuple2[][] #=z5P1SIhg=, Tuple2[] #=zfz1l$$83AuAv, Boolean #=z5Wb2pAI=)
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zp1J5dLiPKVKHGnOVMBY$r60=.#=zkB20MhC3L$0uwA3fb2PFq8nhgLCq(Int32 #=z5RhzSJE=, Int32 #=zHENsHFU=)
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zb8Zj1CwLD29I9ToYSTyKNoo=(#=z00IInOdqaWIYpQGrkPgvcozdYVx6ipchyg== #=z6iKVhVs=, IEnumerable1 #=zU3bCEH28F5Caew9zLQ==, IEnumerable1 #=zmI0_KcaE0okA)
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zDd8vOHb3MPJbK8DTrg==(#=z00IInOdqaWIYpQGrkPgvcozdYVx6ipchyg== #=z6iKVhVs=)
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zazvG6nnLwAs1i99Z4A==(#=z52AgdhKFGuvFnPkOaA$gWifB911N6wTZdQ== #=zTDHMMYI=)
at #=zrJ1k69oIrv8xJMmMblu1u00P8Bua.#=zu2sNtMmvBlCZ4G$cjnXvc28=.#=zsKbHcRAMKKMErflYD9we70aJrl9W(#=z52AgdhKFGuvFnPkOaA$gWifB911N6wTZdQ== #=ze8rBUus=)
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.ConcatIterator1.MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at #=z476VlGRaqPonrbV8Aj4iVD_v2p5ENa4kTg==.#=zhn$R0LX3A9Pt[T](IEnumerable1 #=zzs$IuCY=) at #=zwl4ZQvKlcmeiajSJ_KDngESz3nEzYiAJ1w==.#=z9_GInGP6xQSW(#=zrJ1k69oIrv8xJMmMblu1u00P8Bua #=zbHNzvcY=, #=zY6d_C6Jgk4RqfbJRyOr4CrXI4HBsU7mg2w== #=zHYBAOV0=, #=zYaLucf5p$ldXO5CiVQ==[] #=zdbqsLNh6em_mvNU9gw==, #=zpmoRl0W6qQ4pxmIPEkp7YJQ_vr9W #=zHhj8GvWDeoY3IgXpFQ==) at #=zwl4ZQvKlcmeiajSJ_KDngESz3nEzYiAJ1w==.#=zG_5mSs3pn543(#=zB348yXCWXjRRPqAytFdbVJM= #=zjHvFwv4=, #=zpmoRl0W6qQ4pxmIPEkp7YJQ_vr9W #=zHhj8GvWDeoY3IgXpFQ==, #=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, #=zdV34GEBBmB1RFjYTck02YVlmuF1U #=zHR1V6uo=) at #=zwl4ZQvKlcmeiajSJ_KDngESz3nEzYiAJ1w==.#=zIJmlTio=(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, #=zdV34GEBBmB1RFjYTck02YVlmuF1U #=zHR1V6uo=) at #=zdV34GEBBmB1RFjYTck02YVlmuF1U.#=zIJmlTio=(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=) at #=zz1Wuyq0$p87$pxKVpTjw_gEmfnVY.#=z3ktkJzc=() at #=zz1Wuyq0$p87$pxKVpTjw_gEmfnVY.MoveNext() at #=zmuet8dbKsCiMbfDs$iY6Gk52Y1eKpK1dTg==.#=zoyjmkswrHVQ8(#=zeqBIS9hneXY7Njgi8nZUs1A= #=z$3Z1rpbjs8RQDNvZcA==, #=zdV34GEBBmB1RFjYTck02YVlmuF1U[] #=zrkmthNB$URcU, #=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, TimeSpan #=zwIT1Yyo=) at #=zADeWP3iA5Uc6W_002QGU6sVAwfyt.Render(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, TimeSpan #=zwIT1Yyo=, #=zP4dKJ1vh9ZJlfsQtG81swgI=[] #=zy0utAYU=, #=zB348yXCWXjRRPqAytFdbVJM=[] #=zR8p6vMg=) at #=zADeWP3iA5Uc6W_002QGU6sVAwfyt.Render(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, TimeSpan #=zwIT1Yyo=, #=zB348yXCWXjRRPqAytFdbVJM=[] #=zR8p6vMg=) at #=z0ty_4fAzHOZwko8e9RCaNF_7rHrJ.Render(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, #=zT045q1k= #=zjHvFwv4=, TimeSpan #=zwIT1Yyo=) at #=z0ty_4fAzHOZwko8e9RCaNF_7rHrJ.Render(#=zvD5vG2t$dEEwAIskvqmRJbiYJGCb #=z$wHRbpc=, #=zT045q1k= #=zjHvFwv4=) at #=zQSYPoowjBNtNTaCvjgSFZhcHPK2I.#=zgARWksrCYtyg(Stream #=zzJIIavwUgxBI, Document #=zA9hvYeoigusH, HtmlLoadOptions #=zAN0DE0fjfmDB, IList1 #=zwyJS5A9C3Tc$, String #=znAH5ZBe7ORm5, Matrix #=zmmW8USo=)
at Aspose.Pdf.FormattedFragment.#=zVNQsxlM=(Double& #=zj3JwNZo=, Double& #=z151ISy0=, Boolean #=znz6ojxYjYMOB, Double #=zdmW2KV4=, Double #=z10IvZw0=, List1 #=z13$bds0=, List1 #=zMaDlVeyqsWHszhc0QQ==, Int32& #=zJDyI$9CS2LF60ZGbx0JXhUnPBa4V, Page #=zAd34nB8=, MarginInfo #=z5nO53tE=, Table #=z6iKVhVs=, Double& #=z9AgLsQBp4xAQ, Boolean #=z4iz3qhkgUGLz, Boolean #=zP$OGaT4G5U4m)
at #=zjy_pGtjB161njwNdJ8dUHc0=.#=zVNQsxlM=()
at Aspose.Pdf.Page.#=zRBJJnM0=(Page #=zAd34nB8=)
at Aspose.Pdf.Page.#=zJh6DI57NloDqyTzg0Q==()
at Aspose.Pdf.Document.ProcessParagraphs()
at Aspose.Pdf.Document.#=zlFihzg7fniGz(Stream #=z$CIfKyo=, SaveOptions #=zEF1fpC2d7XZd)
at Aspose.Pdf.Document.Save(Stream output)
at Markers.Api.Assessment.Controllers.TranscriptReportCardController.GenerateTranscriptReportCardForEveryStudent(List`1 transcriptStudentWiseDatas, String template) in \Controllers\TranscriptReportCardController.cs:line 713
Code:
using (var streamOut = new MemoryStream())
{
document.Save(streamOut); // Getting error from this line
FileDetails fileDetails = new FileDetails() { FileName = “TranscriptReportCard-” +
singleStudent.StudentName.ToString() + “.pdf”, FileContent = streamOut.ToArray(), StudentId =
singleStudent.StudentId };
docFiles.Add(fileDetails);
}
Please suggets
Thanks
Chandan

@wefivesoft
In a .Net 6 console application, even the original version (from the first message) works for me without exceptions. Can you please tell the OS you are using, the .Net variant, the version of the library you are using. Perhaps there is some more important additional information.

Hi Sergei,
We are using OS Windows 10, .Net Core 5.0, Aspose.PDF 21.4.0
Sample code:
license.SetLicense(@“Aspose.PDF.NET.lic”);
var document = new Aspose.Pdf.Document
{
PageInfo = new PageInfo { Margin = new MarginInfo(5, 5, 5, 5), IsLandscape = false }
};
var pdfPage = document.Pages.Add();
HtmlFragment bodyInfo = new HtmlFragment(sb.ToString());
bodyInfo.Margin.Bottom = 30;
pdfPage.Paragraphs.Add(bodyInfo);
var modifiedFileName = Path.Combine(@“C:\Leo Jeffrey Janert.pdf”);
document.Save(modifiedFileName);

Note: How can I send you the string builder value. Error is not occurring every time. It is working for IsLandscape = true
PageInfo = new PageInfo { Margin = new MarginInfo(10, 10, 10, 10), IsLandscape = true }

@wefivesoft
“string builder value” - it is value for sb in line?

You can write it in a separate post.
If I understand you correctly.

@sergei.shibanov
Yes you are correct. So the string builder value is:

<table style='border-collapse:collapse;margin-bottom:2px;float:right;'><tr style='width:100%'><td rowspan=5><td rowspan=5><img src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAACHVAAAh1QEEnLSdAAAAdmVYSWZJSSoACAAAAAQAGgEFAAEAAAA+AAAAGwEFAAEAAABGAAAAKAEDAAEAAAACAAAAaYcEAAEAAABOAAAAdAAAANUhAAABAAAA1SEAAAEAAAADAAGgAwABAAAAAQAAAAKgBAABAAAAlgUAAAOgBAABAAAAPgcAAAAAxcIm0gAAEhZJREFUeJzdWgl0VdV6/u+Qm5uZkAFCEpIQCBAyh0CCJBBCCLRFEIUKxfcUkfe0Wu1b2mrf/Gy1XcuHS3Gpj8pgCwqoWGWeZCwog0DAMIUwhQCZQ0Lme2+/778DCQk828d7Xe1ea+ecfc4++/zfP3z/v8+N2YEm/w+a+X9bgPvVegBpb28Vg6H3yW7j8chuNHJi75Odaxgwz+gaG7qtcbf1DXd5eW/Xvby8POceIC0tLbJixb9Lp81HjAaf2wvoH+fL7XaHCtbY2CbV1XUSEzMAL7DdAdzgAWKz8blqdM4xArhRBXILZbfbxYnLIZ2dnVJefhVrxujYOef2WncCsdlsut6cOXMkMDDwNpAbNyrQO+S996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LhfpZw5uxvnB2GHRtenvf3I+odgsVkQMFW73b5W+Gl1EKrt6dNnILPnAMjobr8v/tGAsDFORo/OhlUGoGwZoFS5fv2ncvLkQnF+nf8ZOvf4HV2+T7a6Or/yf4v+d7DwR3DXR1FFTMDuMkU/Rblp+08CxN1oEbobCz9WrQcPfis7tv9MTp0uuedz0dHXQQSbYIF5qOWSwWgjQNm9/8T9fdsf/L8orGhZEzHrDx8+HJZKR6E3RqmZ1W1DQ71+wSQTxcbG6scKbhMSEgYjiw/XWup+tPv2TzVMYtzwcB+fmcmALdRajfmAyTAubpD+zs6dHestxtr9bPf9v4N8ff3UMuysrdgJhAVgb8Xe/Wp/1H9zcn4z/tP8JxXfcu9/+vg/0v4LtEoT9CtYBGMAAAAASUVORK5CYII=' style='height:120px;width:85px;image-rendering:crisp-edges;'/></td></tr></table><table style='border-collapse:collapse;width:60%;'><tr><td>&nbsp;</td></tr><tr><td style='width:80%;'>Albuquerque Institute for Mathematics and Science - DISTRICT (524) </td><td rowspan=8 style='width:10%; vertical-align:top; text-align:center;margin-bottom: 10%;'></td></tr><tr><td colspan=6>Albuquerque Institute for Mathematics and Science (001) </td></tr><tr><td>933 Bradbury Dr. SE</td></tr><tr><td>Albuquerque, New Mexico, 87106</td></tr><tr><td></td></tr><tr><td>Phone: (505)559-4249 </td></tr></table><table style='border-collapse:collapse;width:100%;margin-bottom:20px;'><tr style='width:100%'><td rowspan=5 style='background-color:#191970;color:#ffffff;text-align:center;margin-bottom:30px;'>Transcript Card</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr><td>Name Of Student</td><td>Leo Jeffrey Janert</td><td>Student Code</td><td>1203523</td><td rowspan=6 style='vertical-align:top; text-align:center;'><img src = '' style='height:60px; width:60px; border-radius:50%;'/></td></tr><tr><td>Student Address</td><td colspan=3>13315 Tierra Montanosa Dr NE, Albuquerque, New Mexico, 87109</td></tr><tr><td>State Unique ID</td><td>357716588</td><td>Grade Level</td><td>12</td></tr><tr><td>Gender</td><td>M</td><td>Ethnicity</td><td>American</td></tr><tr><td>DOB</td><td>May 20, 2005</td><td>Hispanic/Latino</td><td>Not Hispanic or Latino</td></tr><tr><td>Race</td><td>White/Caucasian, Asian</td><td>CB/ACT</td><td></td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>9</td><td colspan=5 rowspan=2>Campus : 320109-Albuquerque Institute of Mathematics and Science</td></tr><tr><td colspan=3>Year</td><td colspan=2>2020</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td colspan=2>S2</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Intensive HS(INTHS)A</td><td>8624100</td><td>A</td><td></td><td>A</td><td></td><td></td><td>0.50</td><td>0.50</td></tr><tr><td>Electives/Dual Credit</td><td>Intensive HS(INTHS)B</td><td>8624100</td><td>A</td><td></td><td>A</td><td></td><td></td><td>0.50</td><td>0.50</td></tr><tr><td>English</td><td>Hon English 9(HENG9)</td><td>10015141</td><td>A</td><td>H</td><td>A</td><td>H</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Mathematics</td><td>Geometry Honors(GEOH)</td><td>20345113</td><td>A</td><td>H</td><td>A</td><td>H</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Physical Education</td><td>Physical Education I(PE1)</td><td>23054101</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Science</td><td>Biology 1(BIO1)</td><td>17113113</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Social Studies</td><td>AP Government(APGOV)</td><td>27360000</td><td></td><td></td><td>A</td><td>AP</td><td></td><td>0.50</td><td>0.50</td></tr><tr><td>Social Studies</td><td>NM Hist(NMHIST)</td><td>27004104</td><td>A</td><td></td><td></td><td></td><td></td><td>0.50</td><td>0.50</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=5>Total Credit Attempted</td></tr><tr><td colspan=5>6.00</td><td colspan=5>6.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>10</td><td colspan=3 rowspan=2>Campus : 004742-Central New Mexico Community College</td></tr><tr><td colspan=3>Year</td><td colspan=2>2021</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>SS</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>PERSONAL AND PRACTICAL NUTR(NUTR)</td><td>5040000</td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Electives/Dual Credit</td><td>Principals of Design</td><td></td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Electives/Dual Credit</td><td>INTRODUCTION TO PHILOSOPHY(PHIL)</td><td>27818889</td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=3>Total Credit Attempted</td></tr><tr><td colspan=5>3.00</td><td colspan=3>3.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>10</td><td colspan=5 rowspan=2>Campus : 320109-Albuquerque Institute of Mathematics and Science</td></tr><tr><td colspan=3>Year</td><td colspan=2>2021</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td colspan=2>S2</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Japanese 1(JAPA1)</td><td>12640102</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>English</td><td>Hon English 10(HENG10)</td><td>10025142</td><td>A</td><td>H</td><td>A</td><td>H</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Mathematics</td><td>Honors Algebra II(HALG2)</td><td>20445113</td><td>A</td><td>H</td><td>A</td><td>H</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Science</td><td>Physics(PHYS)</td><td>17313113</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Social Studies</td><td>AP World History(APWH)</td><td>27555141</td><td>A</td><td>AP</td><td>A</td><td>AP</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=5>Total Credit Attempted</td></tr><tr><td colspan=5>5.00</td><td colspan=5>5.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>10</td><td colspan=3 rowspan=2>Campus : 002663-University of New Mexico</td></tr><tr><td colspan=3>Year</td><td colspan=2>2021</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>SS</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Trigonometry and PreCalc</td><td>20558888</td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=3>Total Credit Attempted</td></tr><tr><td colspan=5>1.00</td><td colspan=3>1.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>11</td><td colspan=5 rowspan=2>Campus : 320109-Albuquerque Institute of Mathematics and Science</td></tr><tr><td colspan=3>Year</td><td colspan=2>2022</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td colspan=2>S2</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Intensive HS(INTHS)A</td><td>8624100</td><td>A</td><td></td><td>A</td><td></td><td></td><td>0.50</td><td>0.50</td></tr><tr><td>Electives/Dual Credit</td><td>Intensive HS(INTHS)B</td><td>8624100</td><td>A</td><td></td><td></td><td></td><td></td><td>0.25</td><td>0.25</td></tr><tr><td>Electives/Dual Credit</td><td>Japanese 2(JAPA2)</td><td>12650000</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>English</td><td>AP English 11(APEN11)</td><td>10125141</td><td>A</td><td>AP</td><td>A</td><td>AP</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Mathematics</td><td>Calculus AP/AB(CALAP)</td><td>23014100</td><td>A</td><td>AP</td><td>B</td><td>AP</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Science</td><td>Chemistry(CHEM)</td><td>17213113</td><td>A</td><td></td><td>A</td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Social Studies</td><td>AP US History(APUSH)</td><td>27255141</td><td>B</td><td>AP</td><td>A</td><td>AP</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=5>Total Credit Attempted</td></tr><tr><td colspan=5>5.75</td><td colspan=5>5.75</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>11</td><td colspan=7 rowspan=2>Campus : 002663-University of New Mexico</td></tr><tr><td colspan=3>Year</td><td colspan=2>2022</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td colspan=2>S2</td><td colspan=2>SS</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td><td>Grade</td><td>Code</td><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Gen Chem I Stems Lab</td><td></td><td></td><td></td><td>CR</td><td>DC</td><td></td><td></td><td></td><td>0.00</td><td>0.00</td></tr><tr><td>Electives/Dual Credit</td><td>GEN CHEM I FOR STEM MAJORS(GCHEM)</td><td>17618888 </td><td></td><td></td><td>A</td><td>DC</td><td></td><td></td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Electives/Dual Credit</td><td>PREPARATION FOR COLLEGE CHEM(PREP FOR CHEM)</td><td>17230001 </td><td>CR</td><td>DC</td><td></td><td></td><td></td><td></td><td></td><td>0.00</td><td>0.00</td></tr><tr><td>Electives/Dual Credit</td><td>Applications of Calculus I</td><td></td><td></td><td></td><td></td><td></td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=7>Total Credit Attempted</td></tr><tr><td colspan=5>2.00</td><td colspan=7>2.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>11</td><td colspan=3 rowspan=2>Campus : 004742-Central New Mexico Community College</td></tr><tr><td colspan=3>Year</td><td colspan=2>2022</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>SS</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>FUND OF INFO LIT & SYSTEMS(C-FLIT)</td><td>3029999</td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=3>Total Credit Attempted</td></tr><tr><td colspan=5>1.00</td><td colspan=3>1.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>12</td><td colspan=3 rowspan=2>Campus : 002663-University of New Mexico</td></tr><tr><td colspan=3>Year</td><td colspan=2>2023</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>MACROECONOMICS PRINCIPLES</td><td>27449999 </td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td>Electives/Dual Credit</td><td>CALCULUS I </td><td>20558889 </td><td>A</td><td>DC</td><td></td><td>1.00</td><td>1.00</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=3>Total Credit Attempted</td></tr><tr><td colspan=5>2.00</td><td colspan=3>2.00</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr style='visibility:collapse;'><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td><td style='border:none;'></td></tr><tr><td colspan=3>Grade Level</td><td colspan=2>12</td><td colspan=3 rowspan=2>Campus : 001 Albuquerque Institute for Mathematics and Science</td></tr><tr><td colspan=3>Year</td><td colspan=2>2023</td></tr><tr><td rowspan=2>Subject</td><td rowspan=2>Course</td><td rowspan=2>Course ID</td><td colspan=2>S1</td><td rowspan=2>Average Grade</td><td rowspan=2>Credit Earned</td><td rowspan=2>Credit Attempted</td></tr><tr><td>Grade</td><td>Code</td></tr><tr><td>Electives/Dual Credit</td><td>Intensive HS(INTHS)</td><td>08624100</td><td>A</td><td></td><td></td><td>0.25</td><td>0.25</td></tr><tr><td>Electives/Dual Credit</td><td>Student Aide(SA)</td><td>08230001</td><td>A</td><td></td><td></td><td>0.50</td><td>0.50</td></tr><tr><td>English</td><td>AP English 12(APEN12)</td><td>10135141</td><td>A</td><td>AP</td><td></td><td>0.50</td><td>0.50</td></tr><tr><td colspan=5>Total Credit Earned</td><td colspan=3>Total Credit Attempted</td></tr><tr><td colspan=5>1.25</td><td colspan=3>1.25</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr><td>GPA Type</td><td>GPA</td><td>Rank</td><td>Date of Rank</td><td>Total Credit Attempted</td><td>Total Credits Earned</td></tr><tr><td></td><td>3.965</td><td>4 out of 27</td><td></td><td>27.00</td><td>19.25</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr><td style='width:100%'>Grade Scale</td></tr><tr><td>A: 90-100, B: 80-89, C: 70-79, D: 60-69, F: 0-59</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr><td style='width:100%'>Explanation Code</td></tr><tr><td>AP-Advanced Placement, DC-Dual Credit, H-Honors course. (Note:locally approvedHonorscourses.), MS-High School Course taken in Middle School</td></tr></table><table border='1px' style='border-collapse:collapse;margin-bottom:30px;width:100%;'><tr><td style='width:50%'>Authorized Signatory</td><td style='width:50%'>Issuing Date</td></tr><tr><td style='height:60px'></td><td>01-25-2023</td></tr></table>

@wefivesoft
With last version of library (23.1) it work well (see attached file).
Leo Jeffrey Janert.pdf (228.0 КБ)
With version 21.4 of library trown an exception.
You should update the version of the library you are using.

@sergei.shibanov
Very strange even still I’m getting the same error. Let me create a sample console app and share with you

@wefivesoft
Let me send you a console project (or create it yourself) and see how it works on your side. Perhaps the influence is exerted by the code in the controller

@wefivesoft
I missed - should the file I attached be deleted or can it be left in the forum?

@sergei.shibanov
It’s very helpful if you send me your console app

@sergei.shibanov
I’ve created the console app where I’m able to reproduce the issue. How can I share the project like in ZIP format?

@wefivesoft
Yes you can archive it and attache here.

@sergei.shibanov
I’m not able to upload since it’s a 24kb file.
image.png (7.0 KB)
image.png (9.9 KB)

@sergei.shibanov
Now able to upload zip file after deleting bin and obj folder. Please find the file attached
TestAspose.zip (23.3 KB)

@sergei.shibanov
Are you able to reproduce the issue with my sample console application?

@wefivesoft
Yes, the exception was reproduced when the project was launched as it was sent. Then I updated the version of used Aspose.Pdf to the latest - 23.1 (and commented out the license connection). And the exception did not arise, the file is the one I attached above.

I’m talking about the version of the library Aspose.Pdf