This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print a test page using print-job | |
{ | |
# The name of the test... | |
NAME "Print file using Print-Job" | |
# The operation to use | |
OPERATION Print-Job | |
# Attributes, starting in the operation group... | |
GROUP operation-attributes-tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#include <qpdf/QPDF.hh> | |
#include <qpdf/QPDFObjectHandle.hh> | |
#include <qpdf/QPDFWriter.hh> | |
int main() { | |
QPDF pdf; | |
pdf.emptyPDF(); | |
QPDFObjectHandle unreferenced_obj = QPDFObjectHandle::newStream(&pdf); | |
QPDFObjectHandle page = QPDFObjectHandle::parse( |