Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sat Oct 11, 2025 1:23 pm

Spire.pdf .net (framework) Version 11.2.4 (dll. from net40)
Form fields not shown in pdf xchange editor after merging pdf files with spire.pdf:
After merging some pdf files (with form fields) with spire.pdf , the form fields are empty when opened with PDF XChange Editor.
When opening with MS Edge Browser, the form field contents are visible.

This seems to depend on the input pdf.
Example where the fields are empty after merging the following pdf with others to a merged pdf (ZWIP.zip)
IBPA_1165340.4.5.1-430.1-29_ZWIP_(J404)_c_U_0607_1v4.pdf
PPAU..., PPLE_...
Merged file: ADZD_1165340.4.5.1-430.1-29_ZWIP_07_1v1.pdf

No problems with this file (BSGB.zip)
IBPA_1141171.4-07_BSGB_(P21)_a_U_0607_1v4.pdf
PPAU..., PPLE_...
Merged file: ADZD_1141171.4-07_BSGB_07_1v1.pdf

Wilfried.Engstler
 
Posts: 8
Joined: Thu Feb 13, 2025 2:13 pm

Mon Oct 13, 2025 2:36 am

Hello,

Thank you for your inquiry.
When testing with Spire.PDF for .NET version 11.2.4 and the latest version Spire.PDF 11.9.17, I was unable to reproduce the issue you described. My resulting file (MergeZWIPPDF.pdf) appears normal in all aspects. Could you please update to our latest version and test again? If the problem persists after updating, would you be able to provide the test environment information where you encountered this issue (such as OS info: Win10, 64-bit) and the code that can consistently reproduce the problem? We will then conduct further investigation. Thank you for your cooperation and understanding.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Wed Oct 15, 2025 11:35 am

I updated my dll to 11.9.17 and tried again, the result is the same:
Form fields are visible in MSEdge, but not in PDF XChange Editor.
OS: Windows Server 2022 Standard (deployed)
OS: Edition Windows 10 Enterprise, Version 22H2 (Develop)

I add 2 screenshots showing file after concatenating with spire.pdf

One shows pdf opened with msedge, form fields are OK.
The other shows same pdf opended with PDF XChange Editor, form fields are empty.

Here the code:

Code: Select all
   Public Sub Merge(ByVal fileNameA As String, ByVal filePathA As String, ByVal filenames as List(of String))
      Dim newDocL As PdfDocument
      Try
         Dim fullFilenameL As String = System.IO.Path.Combine(filePathA, fileNameA)
         newDocL = New PdfDocument()
         newDocL.DocumentInformation.Creator = Creator
         newDocL.DocumentInformation.Title = Title

         Dim PdfDocumentList As New List(Of PdfDocument)

         For Each fileL As string In filenames
            Dim partDocL As New PdfDocument(fileL)
            Dim countPagesL As Integer = 0
            Dim firstSizeL As SizeF
            countPagesL = partDocL.Pages.Count
            ' Gesamtes Dokument anfügen
            newDocL.AppendPage(partDocL)
         Next
         newDocL.SaveToFile(fullFilenameL, FileFormat.PDF)
         newDocL.Dispose()
      Catch ex As Exception
      End Try
   End Sub

Wilfried.Engstler
 
Posts: 8
Joined: Thu Feb 13, 2025 2:13 pm

Thu Oct 16, 2025 3:15 am

Hello,

Thank you for your feedback.
I have reproduced your issue and logged it into our bug tracking system with the ticket SPIREPDF-7789. Our dev team will investigate and fix it, once it is resolved or there is any update, I will notify you immediately. Apologize for the inconvenience caused. We sincerely apologize for any inconvenience this may have caused and appreciate your patience as we address this matter.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Tue Oct 28, 2025 2:47 am

Hello,

Thank you for your patience.
Regarding issue SPIREPDF-7789, our investigation suggests using the following code for document merging:
Code: Select all
Dim files As String() = {
    "IBPA_1165340.4.5.1-430.1-29_ZWIP_(J404)_c_U_0607_1v4.pdf",
    "PPAU_1165340.4.5.1-430.1-29_ZWIP_(J404)_c_U_0607_1v4.pdf",
    "PPLE_1165340.4.5.1-430.1-29_ZWIP_(J404)_c_B_0607_1v8.pdf"}
Dim pdf As PdfDocumentBase = PdfDocument.MergeFiles(files)
pdf.Save("MergePDF.pdf", FileFormat.PDF)

I have attached my resulting file for your reference and look forward to your feedback.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Wed Oct 29, 2025 11:12 am

the problem is: I have to treat some pages of the documents in a special way (for example ignore portrait pages for specific files, add empty page if odd/even). I show you the complete code, where clsSpirePdfFileEntry is a class specifying some properties of a file.
So maybe I cannot use your solution.

Code: Select all
     
Dim newDocL As PdfDocument
      Try
         Dim fullFilenameL As String = System.IO.Path.Combine(filePathA, fileNameA)
         newDocL = New PdfDocument()
         newDocL.DocumentInformation.Creator = Creator
         newDocL.DocumentInformation.Title = Title

         Dim PdfDocumentList As New List(Of PdfDocument)

         For Each fileL As clsSpirePdfFileEntry In FileListM
            Dim partDocL As New PdfDocument(fileL.FilenameFull)
            Dim countPagesL As Integer = 0
            Dim firstSizeL As SizeF
            ' Wenn fileL.IgnoreA4HochPagesAtBegin=true ist, müssen die pages einzeln angefüggt werden, A4 hoch werden übergangen
            If fileL.IgnoreA4HochPagesAtBegin Then
               For i As Integer = 0 To partDocL.Pages.Count - 1
                  Dim actPageL As PdfPageBase = partDocL.Pages(i)
                  Dim sizeL As SizeF = actPageL.Size
                  If i = 0 Then
                     firstSizeL = New SizeF(sizeL)
                  End If
                  Dim ignorePageL As Boolean = False
                  If (sizeL.Width >= 590 And sizeL.Width <= 600) And (sizeL.Height >= 838 And sizeL.Height <= 847) Then
                     ignorePageL = True
                  End If
                  If Not ignorePageL Then
                     newDocL.InsertPage(partDocL, i)
                     countPagesL += 1
                  End If
               Next
            Else
               countPagesL = partDocL.Pages.Count
               ' Gesamtes Dokument anfügen
               newDocL.AppendPage(partDocL)
            End If
            ' Wenn leereSeiteBeiUngeradeA=true muss bei ungerader Anzahl eine Leerseite angefügt werden
            ' PdfPageBase newPage = newDocL.Pages.Insert(1, firstSizeL);
            If leereSeiteBeiUngeradeA And (countPagesL Mod 2) > 0 Then
               newDocL.Pages.Add(firstSizeL)
            End If
         Next
         newDocL.SaveToFile(fullFilenameL, FileFormat.PDF)
         newDocL.Dispose()

Wilfried.Engstler
 
Posts: 8
Joined: Thu Feb 13, 2025 2:13 pm

Thu Oct 30, 2025 3:30 am

Hello,

Thank you for your feedback.
Based on your specific case, we recommend performing the page processing operations (such as blank page handling) first. Once completed, save the processed files and then proceed to merge these saved files. Would you like to try this solution to see if it meets your requirements?
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Thu Oct 30, 2025 7:38 pm

Hello Support Team,

thanks for the quick answer!
your solution seems to work.

Luckily the files, where I have to ignore some leading pages, do not have form fields.
I suppose, the following statement would be a problem if the file had form fields:
If fileL.IgnoreA4HochPagesAtBegin Then
NewPartDocL = New PdfDocument(fileNameFullTempL)
....
If Not ignorePageL Then
NewPartDocL.InsertPage(partDocL, i)
countPagesL += 1
End If
Next

but this is not the case and my first test went well.

Wilfried.Engstler
 
Posts: 8
Joined: Thu Feb 13, 2025 2:13 pm

Fri Oct 31, 2025 1:28 am

Hello,

Thank you for your feedback.
If you encounter any issues during testing, please send us your complete test code and relevant files. We will conduct a further investigation. Thank you for your support.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Return to Spire.PDF

cron