2012-07-08 18:19:19 +00:00
|
|
|
#include <qpdf/QPDF_Reserved.hh>
|
2022-02-04 21:31:31 +00:00
|
|
|
|
2012-07-08 18:19:19 +00:00
|
|
|
#include <stdexcept>
|
|
|
|
|
2022-08-02 21:57:33 +00:00
|
|
|
QPDF_Reserved::QPDF_Reserved() :
|
2024-08-12 16:52:42 +00:00
|
|
|
QPDFValue(::ot_reserved)
|
2022-08-02 21:57:33 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_Reserved::create()
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Reserved());
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Reserved::copy(bool shallow)
|
2022-06-16 16:45:04 +00:00
|
|
|
{
|
|
|
|
return create();
|
|
|
|
}
|
|
|
|
|
2012-07-08 18:19:19 +00:00
|
|
|
std::string
|
|
|
|
QPDF_Reserved::unparse()
|
|
|
|
{
|
2022-08-02 18:13:29 +00:00
|
|
|
throw std::logic_error("QPDFObjectHandle: attempting to unparse a reserved object");
|
2012-07-08 18:19:19 +00:00
|
|
|
return "";
|
|
|
|
}
|
2013-01-22 14:57:07 +00:00
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
void
|
|
|
|
QPDF_Reserved::writeJSON(int json_version, JSON::Writer& p)
|
|
|
|
{
|
|
|
|
throw std::logic_error("QPDFObjectHandle: attempting to get JSON from a reserved object");
|
|
|
|
}
|