GithubHelp home page GithubHelp logo

aimprosoft / template-processing Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 4.0 112 KB

Alfresco extension to fill pdf templates from metadata properties

Java 88.76% FreeMarker 0.48% JavaScript 10.76%

template-processing's Introduction

Template Processor component for Alfresco 5.x

This project contains a Template Processor for filling PDF-documents with values using meta-data.

Building

To build the module and its AMP / JAR files, run the following command from the base project directory:

mvn clean install

The command builds JAR files named template-processor-share-jar-<version>.jar/template-processor-share-jar-<version>.amp, template-processor-platform-jar-<version>.jar/template-processor-platform-jar-<version>.amp into <project-directory>/template-processor-platform-jar/target/ and <project-directory>/template-processor-share-jar/target/ directories.

Installation

Use alfresco built-in tools to deploy plugin, Alfresco install AMP

Using the component

  • Log into Alfresco and create your model
  • Define custom type with custom properties
  • Add PDF-document to Alfresco repository
  • Change type of your document to your model
  • Add aspect to the document of Template Processor aim:template
  • Now you can fill in properties into your document just clicking Fill PDF with values
  • After it's done once, you are not able to fill values again
  • However, if you, for some reason, need to change values in the PDF-document - you need to edit the properties and remove mark from checkbox Document is filled in the property list

Note: names should follow these conventions:

  • Id of the property is prefix:name, for example mycom:name
  • Id of the property is generated by Alfresco, so Id mycom:name means that you have model with namespace mycom and property name
  • Id of the input field in the PDF-document should follow prefixed name, in this case mycom:name
  • The mime-type of the PDF-document should be application/pdf
  • The Ids are case-sensitive, so mycom:Name and mycom:name are different Ids

template-processing's People

Watchers

James Cloos avatar Douglas C. R. Paes avatar  avatar Igor Sushko 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.