Issue Concatenating and Sharepoint

We use sharepoint as a document repository. Our code pulls the PDF file from sharepoint and saves it in the temp directory using docName = Path.GetTempFileName(); and then filling the file from sharepoint.


When trying to create a new Aspose.Pdf.Document, it gives us the following error, and we are using the most recent version of Aspose.Pdf

<span style=“font-size:14.0pt;
font-family:“Verdana”,“sans-serif”;mso-fareast-font-family:“Times New Roman”;
mso-bidi-font-family:“Times New Roman”;color:maroon”>Cross reference table or
cross refference stream not found
<span style=“font-size:14.0pt;
font-family:“Verdana”,“sans-serif”;mso-fareast-font-family:“Times New Roman”;
mso-bidi-font-family:“Times New Roman”;color:maroon”> <o:p></o:p>

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: „.: Cross reference table or cross refference stream not found

Source Error:

Line 122: {

Line 123: case ".pdf":

Line 124: pdfDoc = new Aspose.Pdf.Document(docName);

Line 125: masterDoc.Pages.Add(pdfDoc.Pages);

Line 126: break;


Source File: c:\inetpub\wwwroot\PBKNHRockingham\App_Code\clsPDFUtil.cs Line: 124

Stack Trace:

[: Cross reference table or cross refference stream not found]

€..


( , ) +1020

€..( , & ) +49

€.‚.( , & ) +208

€..


(Int64 ) +248

€..


() +369

€...ctor(Stream , String , Boolean ) +578

€...ctor(String ) +67

€.ˆ.


(String ) +46

Aspose.Pdf.Document..ctor(String filename) +78

clsPDFUtil.CombineDocsToPdf(List`1 docList, String fileNumber, String combinedFileName, String password) in c:\inetpub\wwwroot\PBKNHRockingham\App_Code\clsPDFUtil.cs:124

KCMS.DAL.MailMerge.CombineDocsToPdf(List`1 docList, String fileNumber, String combinedFileName, String password) in c:\inetpub\wwwroot\PBKNHRockingham\App_Code\DAL\MailMerge.cs:2578

Core_DocumentRedact.btnUpdate_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\PBKNHRockingham\Core\DocumentRedact.aspx.cs:123

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Hi Darren,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the details regarding the error.

Please share sample code and template file with us to reproduce the issue at our end. This will help us figure out the issue soon.

Sorry for the inconvenience,

Unfortunately, we have now attempted to recreate the issue, having not changed anything, and we are no longer having the issue. We are also about to move our entire infrastructure to new hardware, so we will be monitoring this closely and will let you know of any issues we may encounter.