Skip to content

miyako/4d-plugin-pdf-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

4d-plugin-pdf-pages

A small subset of PDFKit to manipulate pages of a PDF document via the PDFPage class.

Platform

carbon cocoa win32 win64

Version

Compatibility Note

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.


Syntax

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

About

A small subset of PDFKit to manipulate pages of a PDF document

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published