| 183 | } |
| 184 | |
| 185 | void PDFUtils::AppendRectangle(const Rect& rect, const std::shared_ptr<WriteStream>& content) { |
| 186 | float bottom = std::min(rect.bottom, rect.top); |
| 187 | PDFUtils::AppendFloat(rect.left, content); |
| 188 | content->writeText(" "); |
| 189 | PDFUtils::AppendFloat(bottom, content); |
| 190 | content->writeText(" "); |
| 191 | PDFUtils::AppendFloat(rect.width(), content); |
| 192 | content->writeText(" "); |
| 193 | PDFUtils::AppendFloat(rect.height(), content); |
| 194 | content->writeText(" re\n"); |
| 195 | } |
| 196 | |
| 197 | void PDFUtils::ApplyGraphicState(int objectIndex, const std::shared_ptr<WriteStream>& content) { |
| 198 | PDFWriteResourceName(content, PDFResourceType::ExtGState, objectIndex); |