I've been developing a proof-of-concept project using DocPub. But after going to through the licensing process, it seems that PDFNet would be a better fit for us. But now I need to go back and change all of my code to use PDFNet instead of DocPub. What's the easiest/quickest way to get that done?
The easiest way to rewrite your code using DocPub is to create a simple command-line program that only performs your specific conversions.
If you download PDFNet SDK, then on every platform you can compile the Samples/WebViewerConvertTest project out of the box. On OS X and Linux, you simply need to go into Samples/WebViewerConvertTest/CPP and run "make" at the command line. Then WebViewerConvertTest will be runnable at the command line just like DocPub.
So that you can pass file paths into this command-line, please replace the content of WebViewerConvertTest.cpp with the following (then run make again):
catch(std::exception& e)
{
std::cout << e.what() << std::endl;
err = 1;
}
catch(...)
{
std::cout << "Unknown Exception" << std::endl;
err = 1;
}
std::cout << "Done.\n";
return err;
}
Once you have a PDFNet license, you can pass it in as a string into PDFNet::Initialize().