Skip to content

Commit

Permalink
fix: now compiles with sciter sdk 4.4.7.0
Browse files Browse the repository at this point in the history
doc: using TARGET instead of ACTION in premake5 command
  • Loading branch information
4silvertooth committed May 9, 2021
1 parent 37c11ee commit 714d613
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
44 changes: 22 additions & 22 deletions PDF.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ class Image;
class Page : public sciter::om::asset<Page> {
HPDF_Page page;

sciter::value TALIGN_LEFT = HPDF_TALIGN_LEFT;
sciter::value TALIGN_RIGHT = HPDF_TALIGN_RIGHT;
sciter::value TALIGN_CENTER = HPDF_TALIGN_CENTER;
sciter::value TALIGN_JUSTIFY = HPDF_TALIGN_JUSTIFY;
sciter::value TALIGN_LEFT = (int)HPDF_TALIGN_LEFT;
sciter::value TALIGN_RIGHT = (int)HPDF_TALIGN_RIGHT;
sciter::value TALIGN_CENTER = (int)HPDF_TALIGN_CENTER;
sciter::value TALIGN_JUSTIFY = (int)HPDF_TALIGN_JUSTIFY;
/**
sciter::value TALIGN_TOP = HPDF_TALIGN_TOP;
sciter::value TALIGN_BOTTOM = HPDF_TALIGN_BOTTOM;
sciter::value TALIGN_MIDDLE = HPDF_TALIGN_MIDDLE;
sciter::value TALIGN_TOP = (int)HPDF_TALIGN_TOP;
sciter::value TALIGN_BOTTOM = (int)HPDF_TALIGN_BOTTOM;
sciter::value TALIGN_MIDDLE = (int)HPDF_TALIGN_MIDDLE;
*/
sciter::value SIZE_LETTER = HPDF_PAGE_SIZE_LETTER;
sciter::value SIZE_LEGAL = HPDF_PAGE_SIZE_LEGAL;
sciter::value SIZE_A3 = HPDF_PAGE_SIZE_A3;
sciter::value SIZE_A4 = HPDF_PAGE_SIZE_A4;
sciter::value SIZE_A5 = HPDF_PAGE_SIZE_A5;
sciter::value SIZE_B4 = HPDF_PAGE_SIZE_B4;
sciter::value SIZE_B5 = HPDF_PAGE_SIZE_B5;
sciter::value SIZE_EXECUTIVE = HPDF_PAGE_SIZE_EXECUTIVE;
sciter::value SIZE_US4x6 = HPDF_PAGE_SIZE_US4x6;
sciter::value SIZE_US4x8 = HPDF_PAGE_SIZE_US4x8;
sciter::value SIZE_US5x7 = HPDF_PAGE_SIZE_US5x7;
sciter::value SIZE_COMM10 = HPDF_PAGE_SIZE_COMM10;

sciter::value PORTRAIT = HPDF_PAGE_PORTRAIT;
sciter::value LANDSCAPE = HPDF_PAGE_LANDSCAPE;
sciter::value SIZE_LETTER = (int)HPDF_PAGE_SIZE_LETTER;
sciter::value SIZE_LEGAL = (int)HPDF_PAGE_SIZE_LEGAL;
sciter::value SIZE_A3 = (int)HPDF_PAGE_SIZE_A3;
sciter::value SIZE_A4 = (int)HPDF_PAGE_SIZE_A4;
sciter::value SIZE_A5 = (int)HPDF_PAGE_SIZE_A5;
sciter::value SIZE_B4 = (int)HPDF_PAGE_SIZE_B4;
sciter::value SIZE_B5 = (int)HPDF_PAGE_SIZE_B5;
sciter::value SIZE_EXECUTIVE = (int)HPDF_PAGE_SIZE_EXECUTIVE;
sciter::value SIZE_US4x6 = (int)HPDF_PAGE_SIZE_US4x6;
sciter::value SIZE_US4x8 = (int)HPDF_PAGE_SIZE_US4x8;
sciter::value SIZE_US5x7 = (int)HPDF_PAGE_SIZE_US5x7;
sciter::value SIZE_COMM10 = (int)HPDF_PAGE_SIZE_COMM10;

sciter::value PORTRAIT = (int)HPDF_PAGE_PORTRAIT;
sciter::value LANDSCAPE = (int)HPDF_PAGE_LANDSCAPE;

public:

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ cd sciter-pdf
cmake -S ./sub-modules/libharu -B ./sub-modules/libharu/build

#will generate project to build both
./premake5.exe [ACTION] --sciter="PATH/TO/SCITER-SDK"
./premake5.exe [TARGET] --sciter="PATH/TO/SCITER-SDK"
```
where **[ACTION]** is your prefered **ACTION** supported by premake5, use `./premake5 --help` for supported actions, and `"PATH/TO/SCITER-SDK"` is well path to sciter-sdk.
where **[TARGET]** is your prefered **TARGET** supported by premake5, use `./premake5 --help` for supported actions/target,
and `"PATH/TO/SCITER-SDK"` is well path to sciter-sdk.

### Example:
> ./premake5.exe vs2019 --sciter=c:/github/sciter-sdk
Expand Down Expand Up @@ -125,4 +126,6 @@ document.on("click", "button", function() {
<button>CLICK TO GENERATE PDF</button>
</body>
</html>
```
```

### [More in Wiki](https://github.com/4silvertooth/sciter-pdf/wiki)

0 comments on commit 714d613

Please sign in to comment.