File tree Expand file tree Collapse file tree 3 files changed +84
-0
lines changed
pdf-toolkit-repo/src/main
amp/config/alfresco/module/org.alfresco.extension.pdftoolkit/context
java/org/alfresco/extension/pdftoolkit Expand file tree Collapse file tree 3 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 33 xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
44 xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" >
55
6+ <bean id =" org.alfresco.extension.pdf-toolkit-action" abstract =" true" parent =" action-executer" depends-on =" pdftoolkit-messages" >
7+ <property name =" serviceRegistry" >
8+ <ref bean =" ServiceRegistry" />
9+ </property >
10+ <property name =" applicableTypes" >
11+ <list >
12+ <value >{http://www.alfresco.org/model/content/1.0}content</value >
13+ </list >
14+ </property >
15+ <property name =" createNew" value =" true" />
16+ </bean >
17+
618 <!-- pdfsplit -->
719 <bean id =" pdf-split"
820 class=" org.alfresco.extension.pdftoolkit.repo.action.executer.PDFSplitActionExecuter"
Original file line number Diff line number Diff line change 2424import java .util .List ;
2525
2626import org .alfresco .error .AlfrescoRuntimeException ;
27+ import org .alfresco .extension .pdftoolkit .service .PDFToolkitService ;
2728import org .alfresco .model .ContentModel ;
2829import org .alfresco .repo .action .ParameterDefinitionImpl ;
2930import org .alfresco .repo .action .executer .ActionExecuterAbstractBase ;
@@ -49,6 +50,8 @@ public abstract class BasePDFActionExecuter
4950 protected static final String PDF = "pdf" ;
5051
5152 protected ServiceRegistry serviceRegistry ;
53+ protected PDFToolkitService pdfToolkitService ;
54+
5255 //Default number of map entries at creation
5356 protected static final int INITIAL_OPTIONS = 5 ;
5457 public static final String PARAM_INPLACE = "inplace" ;
@@ -177,4 +180,9 @@ protected File nodeRefToTempFile(NodeRef nodeRef)
177180 reader .getContent (tempFromFile );
178181 return tempFromFile ;
179182 }
183+
184+ public void setPDFToolkitService (PDFToolkitService pdfToolkitService )
185+ {
186+ this .pdfToolkitService = pdfToolkitService ;
187+ }
180188}
Original file line number Diff line number Diff line change 1+ package org .alfresco .extension .pdftoolkit .service ;
2+
3+ import org .alfresco .service .ServiceRegistry ;
4+
5+ public class PDFToolkitServiceImpl implements PDFToolkitService {
6+
7+ private ServiceRegistry serviceRegistry ;
8+
9+ @ Override
10+ public void encryptPDF () {
11+ // TODO Auto-generated method stub
12+
13+ }
14+
15+ @ Override
16+ public void signPDF () {
17+ // TODO Auto-generated method stub
18+
19+ }
20+
21+ @ Override
22+ public void watermarkPDF () {
23+ // TODO Auto-generated method stub
24+
25+ }
26+
27+ @ Override
28+ public void splitPDF () {
29+ // TODO Auto-generated method stub
30+
31+ }
32+
33+ @ Override
34+ public void splitPDFAtPage () {
35+ // TODO Auto-generated method stub
36+
37+ }
38+
39+ @ Override
40+ public void insertPDF () {
41+ // TODO Auto-generated method stub
42+
43+ }
44+
45+ @ Override
46+ public void deletePagesFromPDF () {
47+ // TODO Auto-generated method stub
48+
49+ }
50+
51+ @ Override
52+ public void rotatePDF () {
53+ // TODO Auto-generated method stub
54+
55+ }
56+
57+ /**
58+ * @param serviceRegistry
59+ */
60+ public void setServiceRegistry (ServiceRegistry serviceRegistry )
61+ {
62+ this .serviceRegistry = serviceRegistry ;
63+ }
64+ }
You can’t perform that action at this time.
0 commit comments