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() :
|
|
|
|
QPDFValue(::ot_reserved, "reserved")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2018-12-17 17:40:29 -05:00
|
|
|
JSON
|
2022-05-07 07:53:45 -04:00
|
|
|
QPDF_Reserved::getJSON(int json_version)
|
2018-12-17 17:40:29 -05:00
|
|
|
{
|
2023-05-21 13:35:09 -04:00
|
|
|
throw std::logic_error("QPDFObjectHandle: attempting to get JSON from a reserved object");
|
2018-12-17 17:40:29 -05:00
|
|
|
return JSON::makeNull();
|
|
|
|
}
|