Skip to content

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version platform license downloads

Classes to use the golang utility pdfcpu.

dependencies.json

{
	"dependencies": {
		"pdfcpu": {
			"github": "miyako/pdfcpu",
			"version": "latest"
		}
	}
}

Examples

$PROJECT:=File(Structure file; fk platform path).name

$src:=Folder(Folder("/PROJECT/").platformPath; fk platform path).parent.folder("Samples/windows")
$dst:=Folder(fk desktop folder)

var $pdfcpu : cs.pdfcpu.pdfcpu
$pdfcpu:=cs.pdfcpu.pdfcpu.new(cs.pdfcpu._pdfcpu_Controller)

$inFile:=File("/PROJECT/4D Summit 2011 Pre-Class.pdf")
$outDir:=Folder(fk desktop folder)

//before and after page 2
$ex1:={inFile: $inFile; outDir: $outDir.folder("page"); mode: "page"; span: 2}

//3 pages each
$ex2:={inFile: $inFile; outDir: $outDir.folder("span"); span: 3}

//before pages 2,4,10
$ex3:={inFile: $inFile; outDir: $outDir.folder("pages"); mode: "page"; span: [2; 4; 10]}

$pdfcpu.split([$ex1; $ex2; $ex3])

About

Classes to use the golang utility pdfcpu

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages