Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Popup Message Opening concatenate PDF

$
0
0
To whom it may concern,

 I am using Aspose.dll 9.0 to concatenate the files A.pdf & B.pdf to create the package Package_Files_A_B.pdf and when I open the file I get a pop message please see the attached file A_B_Popup_Message.png.   I also have the problem when I concatenate the files C.pdf & D.pdf to create the package Package_Files_C_D.pdf and when I open the file I get a pop message please see the attached file C_D_Popup_Message.png.  I am using the following code:

AsposePDFLink.License license = new AsposePDFLink.License();
                        license.SetLicense("Aspose.Pdf.lic");
                        bool conversionNeeded = false;
                        int convertIndex = 1;
                        string conversionFileName = "";
                        AsposePDFLink.Document mergeDocument = null;
                        AsposePDFLink.Document newDocument = null;
                        foreach (string fileName in InputFiles)
                        {
                            #region "Check if it the first document"
                            if (mergeDocument == null)
                            {
                                mergeDocument = new AsposePDFLink.Document(fileName);
                                // set the form fields type as standard AcroForm
                                if (mergeDocument.Form.Type == AsposePDFLink.InteractiveFeatures.Forms.FormType.Dynamic)
                                {
                                    mergeDocument.Form.Type = AsposePDFLink.InteractiveFeatures.Forms.FormType.Standard;
                                    conversionNeeded = true;
                                    // save the resultant PDF
                                    conversionFileName = GuidValue + "_" + convertIndex.ToString() + "_.pdf";
                                    mergeDocument.Save(conversionFileName);
                                    convertIndex++;
                                }
                                if (conversionNeeded)
                                {
                                    mergeDocument = null;
                                    mergeDocument = new AsposePDFLink.Document(conversionFileName);
                                }
                            }
                            #endregion

                            #region "Add the addtional documents"
                            else
                            {
                                newDocument = new AsposePDFLink.Document(fileName);
                                if (newDocument.Form.Type == AsposePDFLink.InteractiveFeatures.Forms.FormType.Dynamic)
                                {
                                    newDocument.Form.Type = AsposePDFLink.InteractiveFeatures.Forms.FormType.Standard;
                                    conversionNeeded = true;
                                    // save the resultant PDF
                                    conversionFileName = GuidValue + "_" + convertIndex.ToString() + "_.pdf";
                                    newDocument.Save(conversionFileName);
                                    convertIndex++;
                                }
                                if (conversionNeeded)
                                {
                                    newDocument = null;
                                    newDocument = new AsposePDFLink.Document(conversionFileName);
                                }

                                mergeDocument.Pages.Add(newDocument.Pages);

                            }
                            #endregion

                            conversionNeeded = false;
                        }
                        mergeDocument.Save(OutputFile);
Please let me know what I have to do next

Thank you

Alvaro

Viewing all articles
Browse latest Browse all 3131

Trending Articles