Skip to main content

@tvartom/pagesequence@1.3.2

latest

Parse a string representing page sequence with support for merged pages, ignored pages, and ranges of pages in decimal, letters and roman.

Works with
JSR Score
88%
Published
2 months ago

PageSequence

Parse a string representing page sequence with support for merged pages, ignored pages, and ranges of pages in decimal, letters and roman.

Tests

Run tests: deno test

Usage

// Representing a pdf with page 3 and 4 merged to one page in the pdf:
const pageSequence = new PageSequence("1-3|4-6")
pageSequence.getIndexList("3-5") // Returns [2,3]

Add Package

deno add @tvartom/pagesequence

Import symbol

import * as mod from "@tvartom/pagesequence";

Add Package

npx jsr add @tvartom/pagesequence

Import symbol

import * as mod from "@tvartom/pagesequence";

Add Package

yarn dlx jsr add @tvartom/pagesequence

Import symbol

import * as mod from "@tvartom/pagesequence";

Add Package

pnpm dlx jsr add @tvartom/pagesequence

Import symbol

import * as mod from "@tvartom/pagesequence";

Add Package

bunx jsr add @tvartom/pagesequence

Import symbol

import * as mod from "@tvartom/pagesequence";