Code Monkey home page Code Monkey logo

pdfsplit-maven-plugin's Introduction

pdfsplit-maven-plugin

pdfsplit-maven-plugin is a simple plugin for maven that provides a way for your maven builds to grab pieces of larger PDF documents and package these with your product.

Example

Add the repository

<pluginRepositories>
  <pluginRepository>
    <id>pdfsplit-plugin</id>
    <url>https://raw.github.com/zch/maven/releases/</url>
  </pluginRepository>
</pluginRepositories>

Add the plugin

<plugin>
  <groupId>com.github.zch</groupId>
  <artifactId>pdfsplit-maven-plugin</artifactId>
  <version>1.0.1</version>
  <executions>
    <execution>
      <id>pdfsplit</id>
      <phase>package</phase>
      <goals>
        <goal>split</goal>
      </goals>
      <configuration>
          <inputUrl>https://vaadin.com/download/book-of-vaadin/vaadin-7/pdf/book-of-vaadin.pdf</inputUrl>
          <chapter>Chapter 22. Mobile Applications with TouchKit</chapter>
<!--          <pageRange>479-506</pageRange>-->
          <outFile>${project.build.directory}/chapter.pdf</outFile>
      </configuration>
    </execution>
  </executions>
</plugin>

The parameters are:

  • inputUrl: The URL for the PDF document from which to extract something
  • outFile: The file where the extracted pages should be stored
  • chapter: The name of the chapter to extract, e.g. "Chapter 22. Mobile Applications with TouchKit" to extract that chapter from Book of Vaadin
  • pageRange: A range of pages given as start-end, e.g. "479-506", this parameter will only be used if no chapter is given

Generally you will want to specify either the chapter parameter or the pageRange parameter, not both as only the chapter parameter will be respected in that case.

pdfsplit-maven-plugin's People

Contributors

zch avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.