sales@dynamicpdf.com
800.631.5006
Customer Login
Cart [
0
] item
Products
Purchase
Examples
.NET
Java
COM/ActiveX
Docs
.NET
Java
COM/ActiveX
Forums
Support
Company
About Us
Customers
Resellers
EULA
Contact Us
Live Chat
Products
Purchase
Examples
Docs
Forums
Support
Company
Customer Login
Company
About Us
Customers
Resellers
EULA
Contact Us
Live Chat
Products
Subscriptions
Core API
Generator
Merger
Report Writer
Print Manager
Converter
HTML Converter
Rasterizer
Viewer
Barcodes
DynamicPDF API
From $19.95/month
Online Designer, Create Reports, Fill Forms, Merge PDFs, Convert Images to PDF, Extract Text and Much More
Or FREE With Restrictions
DynamicPDF Essentials Subscription
$479/year
HTML to PDF Conversion and Simple PDF Merging
Or FREE With Restrictions
DynamicPDF Professional Subscription
$799/year
DynamicPDF Essentials Subscription plus one of our great products below
DynamicPDF Professional Plus Subscription
$1,149/year
DynamicPDF Essentials Subscription plus two of our great products below
DynamicPDF Ultimate Subscription
$1,499/year
Includes PDF Reports and all of our great products below
HTML Converter
Easily Create PDFs from HTML
Core Suite
Generator, Merger and ReportWriter
Print
Manager
Automate PDF Printing
Converter
Create PDFs from many formats
Rasterizer
Create images and TIFFs out of PDFs
Viewer
WinForm PDF Viewer Control
Dynamic
Barcode
.NET Barcode Generator
Most of our products are available a-la-carte as perpectual licenses as well. For more information, select a product above.
About Us
Customers
Resellers
EULA
Contact Us
Live Chat
Buffer cannot be null
Skip Navigation Links
Home
/
Support
/
Forums
/
DynamicPDF CoreSuite for .NET (v7)
/
Buffer cannot be null
DynamicPDF CoreSuite for .NET (v7) Forum
Advanced Search
Buffer cannot be null
Nov 06 2020 3:17 PM
We are using DynamicPDF For .NET (4.0) version 7.0.1.40
This code is throwing an exception.
private MergeDocument CombineFiles(IPrint[] docs)
{
MergeDocument mergedDoc = new MergeDocument();
foreach (IPrint pdfPrinter in docs.Where(doc => doc.DocumentType == DocType.PDF | doc.DocumentType == DocType.DOCXasPDF))
mergedDoc.Append(new PdfDocument(pdfPrinter.Document));
return mergedDoc;
}
Exception occurred: Buffer cannot be null.
Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
Please advise.
Re: Buffer cannot be null
Nov 06 2020 5:36 PM
Posted by a ceTe Software moderator
Hi,
What is the data type of pdfPrinter.Document? If it is a byte array, please ensure it does not have a value of null.
Thanks,
ceTe Software Support Team
Post Reply
EMail Alerts
All times are US Eastern Standard time. The time now is 10:36 AM.