Skip to content

Allow using page number template for PDF to produce multiple PDF files #7342

Open

Description

@Andrew15-5

Description

Previously mentioned in the forum, it makes no sense to restrict users from using page-{0p}-of-{t}.pdf as the output template name, since it's already available for PNG and SVG. And now there is another similar post.

Doing this:

for page in $(seq 1 3); do typc --pages $page a.typ page-$page.pdf; done

or using other tools to split a single file into multiple is the current workaround.

But since there is --pages, I feel like there is little work needed to add this natively. Basically all the API/infrastructure already exist.

Use Case

Support more automation/generation workflows.

Activity

  1. added
    feature request
    on Nov 8, 2025
  2. laurmaedje commented on Nov 9, 2025

    @laurmaedje
    Member

    This is different, but somewhat related, so linking it here: #7329

  3. added
    cli
    on Nov 20, 2025
  4. dayala1 commented on Dec 12, 2025

    @dayala1
    Contributor

    Having a way to define the creation of different pdfs with a function similar to breakpage would be ideal for us.

    For example at our university we need to create a document for each of the students in a csv file. Being able to do so automatially with a single typ file would be wonderful.

  5. Andrew15-5 commented on Dec 12, 2025

    @Andrew15-5
    ContributorAuthor

    A similar issue was mentioned in is-it-possible-to-create-exams-with-student-names-automatically-printed-on-them/7206, though that is a more general feature, while this one only refers to the already existing page number template value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clifeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions