English | 日本
c++ pdf
Shopping Cart Contact Us Java PDF
PDF code

Create PDF Programs with easyPDF SDK

Quickly and easily build PDF features into your C++ applications

Developers can use easyPDF SDK to quickly and easily build PDF features into their C++ applications.This allows your business to effectively deliver existing business documents to partners, customers and employees.

pdf api

A few lines of code are all it takes to convert a document to PDF in your C++ application:

15 ...
16 EasyPDFPrinter::IPrinterPtr oPrinter;
17 oPrinter.CreateInstance("easyPDF.Printer.7");
19 EasyPDFPrinter::IPrintJobPtr oPrintJob = oPrinter->GetPrintJob();
20 oPrintJob->PrintOut("C:\\input.doc", "C:\\output.pdf");
21 ...

Comprehensive PDF API Features

BCL easyPDF SDK comes with all the PDF features that you may need in developing C++ applications:


Merge, Split, Extract PDF with C++ Code

  • Read the PDFProcessor Object Specification
    This object lets you do post-processing of existing PDF files (such as merging multiple PDF files into one, splitting one PDF file into two, and encrypting/decrypting a PDF file)

C++ Sample Projects

C++ Code Snippet for Merging PDF Files

EasyPDFProcessor::IPDFProcessorPtr oProcessor;
// merge two files using Merge
oProcessor->Merge("C:\\input1.pdf", "C:\\input2.pdf", "C:\\merged.pdf");
// merge more than two files using MergeBatch 
bound.lLbound = 0;
bound.cElements = 3;
SAFEARRAY *inputFiles = SafeArrayCreate(VT_VARIANT, 1, &bound);
std::string filesToMerge[] = { "C:\\input1.pdf", "C:\\input2.pdf", "C:\\input3.pdf" };
int numFiles = sizeof(filesToMerge) / sizeof(std::string);
_variant_t var;
_variant_t inputArray;
char *file;
_bstr_t str;
long ix;
var.vt = VT_BSTR;
for (int i = 0; i < numFiles; i++)
    ix = i;
    file = const_cast<char *>(filesToMerge[i].c_str());
    str = file;
    var.bstrVal = str;
    SafeArrayPutElement(inputFiles, &ix, &var);
inputArray.vt = VT_ARRAY|VT_VARIANT;
inputArray.parray = inputFiles;
oProcessor->MergeBatch(inputArray, "C:\\merged.pdf");


C++ Code Snippet for Splitting PDF

EasyPDFProcessor::IPDFProcessorPtr oProcessor;
// split the document at page 3
oProcessor->Split("C:\\input.pdf", "C:\\part1.pdf", "C:\\part2.pdf", 3);


C++ Code Snippet for Extracting Text from PDF

EasyPDFProcessor::IPDFProcessorPtr oProcessor;
// extract text from pages 1 through 4 to a physical file using ExtractText
oProcessor->ExtractText("C:\\input.pdf", "C:\\extracted.txt", NULL, 0, 3, NULL, NULL);
// extract text from a bounding box on page 1 to a string variable using ExtractText2
std::string text = oProcessor->ExtractText2("C:\\input.pdf", 0, 0, 0, 300, 300, NULL);



Download Free Trial

Request Pricing

Comprehensive PDF Features
C++ Sample Projects

Download C++ Sample Projects

pdf c++

Testimonials from Our Customers
  • We use easyPDF SDK technology for PDF conversion and it works very well. We knew BCL is a solid company. We have also looked at several competitors and tried to use their products, but we like easy PDF SDK the best. When we talked to BCL Technologies’ design engineering team, we knew they had the knowledge and confidence to solve our problems.” Read the case study
  • We evaluated many PDF tools and drivers. We even wrote our own. Except for BCL’s easyPDF SDK, all had limitations we couldn’t live with. Some only converted from MS Office and not very well. Others could not do annotation or text stamping on PDF documents. None were as easy to use and as easy to integrate.” Read the case study
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.