Popup Message Opening concatenate PDF

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

Hi Alvaro,


Thanks for contacting support.

I have tested the scenario using Aspose.Pdf for .NET 9.0.0 in VisualStudio 2010 application running over Windows 7(x64) where I have set English-US as my locale and I am able to notice the error message when viewing concatenated PDF file of A.pdf and B.pdf. For the sake of correction, I have logged this problem
as PDFNEWNET-36546 in our issue tracking system.

However when viewing the concatenated result of C.pdf and D.pdf, I am unable to notice any error message. For your reference, I have also attached the resultant PDF genearted over my end. Can you please share some further details which can help us in replicating this problem.

[C#]

Aspose.Pdf.Document
doc = new Document(“c:/pdftest/C.pdf”);<o:p></o:p>

doc.Form.Type = FormType.Standard;

Aspose.Pdf.Document doc2 = new Document("c:/pdftest/D.pdf");

doc2.Form.Type = FormType.Standard;

doc.Pages.Add(doc2.Pages);

doc.Save(“c:/pdftest/C_D_Merged.pdf”);

Nayyer,


I was able to test the document C and D with your code by changing the document type to standard,. This resolved the popup window issue, however the package is loosing the fill-able fields. Please see the attached document Package_Files_D_C_Set_document_Type_To_Standard.pdf

If you reverse the order, add D.pdf first and C.pfd, to be package you will lose the fill-able fields in the package that you send me.

thank you

Alvaro

Hi Alvaro,

Thanks for your feedback.We have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-36566 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-36546) have been fixed in Aspose.Pdf for .NET 9.1.0.

For further details, you may check this blog post.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Alvaro,


Thanks for your patience.

In order to resolve the issue PDFNEWNET-36546, either convert the static form into standard form using following code snippet

[C#]

Aspose.Pdf.Document
doc = new Document(“36546-1.pdf”);<o:p></o:p>

doc.Form.Type = Pdf.InteractiveFeatures.Forms.FormType.Standard;

Aspose.Pdf.Document doc2 = new Document("36546-2.pdf");

doc.Pages.Add(doc2.Pages);

doc.Save(“36546.pdf”);


OR use facades approach:

[C#]

PdfFileEditor pfe = new
PdfFileEditor();<o:p></o:p>

pfe.Concatenate(

new string[]

{

"36546-1.pdf",

"36546-2.pdf"

},

“36546-1.pdf”);