2013-01-20 19:55:01 +00:00
|
|
|
#include <qpdf/QPDF_InlineImage.hh>
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
#include <qpdf/JSON_writer.hh>
|
|
|
|
|
2013-01-20 19:55:01 +00:00
|
|
|
QPDF_InlineImage::QPDF_InlineImage(std::string const& val) :
|
2022-08-02 21:57:33 +00:00
|
|
|
QPDFValue(::ot_inlineimage, "inline-image"),
|
2013-01-20 19:55:01 +00:00
|
|
|
val(val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-06-16 16:45:04 +00:00
|
|
|
QPDF_InlineImage::create(std::string const& val)
|
|
|
|
{
|
|
|
|
return do_create(new QPDF_InlineImage(val));
|
|
|
|
}
|
|
|
|
|
2022-09-08 15:29:23 +00:00
|
|
|
std::shared_ptr<QPDFObject>
|
2022-11-14 17:54:12 +00:00
|
|
|
QPDF_InlineImage::copy(bool shallow)
|
2022-06-16 16:45:04 +00:00
|
|
|
{
|
|
|
|
return create(val);
|
|
|
|
}
|
|
|
|
|
2013-01-20 19:55:01 +00:00
|
|
|
std::string
|
|
|
|
QPDF_InlineImage::unparse()
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|
|
|
|
|
2024-02-09 13:09:08 +00:00
|
|
|
void
|
|
|
|
QPDF_InlineImage::writeJSON(int json_version, JSON::Writer& p)
|
|
|
|
{
|
|
|
|
p << "null";
|
|
|
|
}
|