Add PDF writer.

This commit is contained in:
jmsgrogan 2022-01-01 18:46:31 +00:00
parent c05b7b6315
commit 9c116b1efd
72 changed files with 1819 additions and 114 deletions

View file

@ -1,6 +1,8 @@
#include "StringUtils.h"
#include <locale>
#include <algorithm>
#include <sstream>
#include <iomanip>
#ifdef _WIN32
#include "Windows.h"
@ -45,3 +47,10 @@ std::string StringUtils::convert(const std::wstring& input)
throw std::logic_error("Not implemented");
#endif
}
std::string StringUtils::ToPaddedString(unsigned numBytes, unsigned entry)
{
std::stringstream sstr;
sstr << std::setfill('0') << std::setw(numBytes) << entry;
return sstr.str();
}