-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdf.cpp
More file actions
31 lines (27 loc) · 672 Bytes
/
pdf.cpp
File metadata and controls
31 lines (27 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <vector>
#include <string>
/**
* Extends a PDF library class to help develop the structure
* of PDF Schema Export for webOS native apps.
*/
class PdfSchema {
public:
// Properties
float xMin = 0.0f;
float yMin = 0.0f;
float leftMargin = 10.0f;
float topMargin = 10.0f;
float scale = 1.0f;
float cMargin = 0.0f;
// Data structures
std::vector<std::string> customLinks;
std::vector<float> widths;
// Constructor
PdfSchema() {
// Initialization logic for native webOS environment
}
// Example method to apply scaling
void setScale(float newScale) {
this->scale = newScale;
}
};