A small subset of PDFKit to manipulate pages of a PDF document via the PDFPage class.
| carbon | cocoa | win32 | win64 |
|---|---|---|---|
This plugin shares some command names as pdf-kit, but the signature and data types are incompatible; therefore you can not use both together. First, comment out the old code, replace the plugin, then uncomment the code to complete the transition.
PDF GET IMAGES (path;images)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| images | ARRAY PICTURE |
PDF GET TEXT (path;text)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| text | ARRAY TEXT |
PDF GET DATA (path;data)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| data | ARRAY BLOB |
PDF SET ROTATION (path;rotation)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| rotation | ARRAY REAL |
If rotation is 0, 90, 180 or 270, PDFKit is used. Otherwise, CoreGraphics is used. To force CG for multiples of 90, pass a negative value or a value exeeding 360.
PDF REMOVE PAGE (path;page)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| page | LONGINT |
PDF INSERT PAGE (path;page)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| page | LONGINT |
PDF EXCHANGE PAGE (path;page1;page2)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| page1 | LONGINT | |
| page2 | LONGINT |
PDF GET PAGE ANNOTATION (path;page;type;coordinates;color;content)
| Parameter | Type | Description |
|---|---|---|
| path | TEXT | |
| page | LONGINT | |
| type | ARRAY TEXT | |
| coordinates | ARRAY TEXT | |
| color | ARRAY TEXT | |
| content | ARRAY TEXT |