Cannot merge or append with PDFMergerUtility in .NET
----------------------------------------------------

                 Key: PDFBOX-346
                 URL: https://issues.apache.org/jira/browse/PDFBOX-346
             Project: PDFBox
          Issue Type: Bug
          Components: Utilities
         Environment: Windows XP SP2, .NET 2.0 C#
            Reporter: Demian Hess


Calling the appendDocument or mergeDocuments methods on PDFMergerUtility in 
.NET results in exception "Object reference not set to an instance of an 
object." I can call "addSource" and "setDestinationFileName" without getting an 
exception. 
 
I'm using .net 2.0 and 0.7.3 PDFBox build. 
 
Example: 
org.pdfbox.util.PDFMergerUtility merger = new 
org.pdfbox.util.PDFMergerUtility(); 
merger.addSource("C:\\file1.pdf"); 
merger.addSource("C:\\file2.pdf"); 
merger.setDestinationFileName("C:\\file3.pdf"); 
merger.mergeDocuments(); // <-- exception thrown here 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to