18 lines
422 B
C++
18 lines
422 B
C++
#include "PdfDocument.h"
|
|
#include "PdfWriter.h"
|
|
#include "PdfObject.h"
|
|
#include "File.h"
|
|
|
|
#include "TestFramework.h"
|
|
#include "TestUtils.h"
|
|
|
|
TEST_CASE(TestPdfWriter, "publishing")
|
|
{
|
|
auto document = std::make_unique<PdfDocument>();
|
|
|
|
PdfWriter writer;
|
|
const auto output = writer.toString(document.get());
|
|
|
|
File pdf_file(TestUtils::getTestOutputDir() / "TestPdfWriter.pdf");
|
|
pdf_file.writeText(output);
|
|
}
|