Skip to content

Commit b39eb8c

Browse files
authored
Update document-thumbs.ts (#249)
1 parent de08fcd commit b39eb8c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/alphalib/types/robots/document-thumbs.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ If you need to reflect the PDF's dimensions in your image, it is generally a goo
163163
.default(true)
164164
.describe(`
165165
Some PDF documents lie about their dimensions. For instance they'll say they are landscape, but when opened in decent Desktop readers, it's really in portrait mode. This can happen if the document has a cropbox defined. When this option is enabled (by default), the cropbox is leading in determining the dimensions of the resulting thumbnails.
166+
`),
167+
turbo: z
168+
.boolean()
169+
.default(true)
170+
.describe(`
171+
If you set this to \`false\`, the robot will not emit files as they become available. This is useful if you are only interested in the final result and not in the intermediate steps.
172+
173+
Also, extracted pages will be resized a lot faster as they are sent off to other machines for the resizing. This is especially useful for large documents with many pages to get up to 20 times faster processing.
174+
175+
Turbo mode increases pricing, though, in that the input document's file size is added for every extracted page. There are no performance benefits nor increased charges for single-page documents.
166176
`),
167177
})
168178
.strict()

0 commit comments

Comments
 (0)