2012-07-08 14:19:19 -04:00
|
|
|
#include <qpdf/QPDF_Reserved.hh>
|
2022-02-04 16:31:31 -05:00
|
|
|
|
2012-07-08 14:19:19 -04:00
|
|
|
#include <stdexcept>
|
|
|
|
|
2022-08-02 22:57:33 +01:00
|
|
|
QPDF_Reserved::QPDF_Reserved() :
|
2024-08-12 17:52:42 +01:00
|
|
|
QPDFValue(::ot_reserved)
|
2022-08-02 22:57:33 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 11:29:23 -04:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 17:45:04 +01:00
|
|
|
QPDF_Reserved::create()
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_Reserved());
|
|
|
|
}
|
|
|
|
|
2022-09-08 11:29:23 -04:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_Reserved::copy(bool shallow)
|
2022-06-16 17:45:04 +01:00
|
|
|
{
|
|
|
|
return create();
|
|
|
|
}
|
|
|
|
|
2012-07-08 14:19:19 -04:00
|
|
|
std::string
|
|
|
|
QPDF_Reserved::unparse()
|
|
|
|
{
|
2023-05-21 13:35:09 -04:00
|
|
|
throw std::logic_error("QPDFObjectHandle: attempting to unparse a reserved object");
|
2012-07-08 14:19:19 -04:00
|
|
|
return "";
|
|
|
|
}
|
2013-01-22 09:57:07 -05: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");
|
|
|
|
}
|