Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make crop() work with all PDFs #21

@cboulanger

Description

@cboulanger

@tcr : I have trouble understanding how crop() is supposed to work. I have updated the method documentation as per this stackoverflow answer but running tests I have trouble getting a meaningful result. For example,

 scissors(infile)
        .pages(1,2)
        .crop(0,0,40,70)
        .pdfStream()
        .pipe(fs.createWriteStream(outfile)

just produces pages 1 and 2 of the infile uncropped, although it should return a 40X70 box from the lower left (112x196 mm).

Did this ever work for you?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions