alfresco-pdf-toolkit's People
Forkers
kylefernandadams loftuxab mwasyou zanderwt entaksi anubioinfo jottley gspyrou deas alex4u2nv jpotts carloscasasnova pophu bcircle mwveelen jpcamilo mariemnf 2050utopia monicagg leknarm joellcastro robsoncardosoti hoecake gody01 khushbuvj rupeshsawaliya patelpradip dgcloud douglascrp arnolp ruppur praveendtut adrian0811 fsreyes madushani abhinavmishra14 ecarbenay agkayster andremmoraes dnhatsave tartard alessio-martinelli stjordanis groul christophercaburog tannineo aborroy poobba ambientelivre jdelker sa-jackmax rfellahi fellahialfresco-pdf-toolkit's Issues
In-place and create-new options for append-pdf
@ntmcminn How are you?
Are you considering to implement those options for the append-pdf action?
That one would be nice.
Thank you
Top right and bottom right positions are swapped
If you specify a digital signature as "topright" it will appear in the bottom right. If you specify "bottomright" it will appear in the top right. PR #13 fixes this issue.
PDF toolkit with Alfresco community 5.1
I have 5.1 community running on windows 2008 server. When I install the latest PDF toolkit and restart the alfresco server, I can not log in. Does anyone know if 5.1 community works with PDF toolkit?
Problem with rules "sign pdf" on version Alfresco Community 2017
Hello,
We got a problem with the rules sign pdf on latest version of alfresco community
Content deletion failed (no exception):
URL: store://2017/9/9/18/50/7aaed83c-f6a0-44dc-a923-2120479c6b5a.bin
Thank for your advice.
Error building
I can no longer build the project after pulling the latest from head.
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.alfresco.extension:repo:[unknown-version]: Failure to find org.alfresco.extension:pdf-toolkit:pom:1.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.alfresco.extension:repo:unknown-version has 1 error
[ERROR] Non-resolvable parent POM for org.alfresco.extension:repo:[unknown-version]: Failure to find org.alfresco.extension:pdf-toolkit:pom:1.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 21, column 13 -> [Help 2]
Digital signature location params missing from dialog and action
I am having trouble getting a digital signature to visibly appear on the PDF. The PDF is getting signed, which I've confirmed by opening the document in Acrobat, but the watermark isn't in place.
In troubleshooting this I'm noticing that the signPDF method of PDFToolkitServiceImpl looks for an X and Y location which it uses to make a digital signature visible, but those two params are not passed in via the PDFSignatureActionExecuter. The action executer has a single location param, but nothing for X and Y specifically. The "sign document" dialog in Share also lacks X & Y fields.
I think older versions of the add-on had fields for X & Y so I'm wondering if they were removed on purpose or if this is a bug.
Is the add-on in its current state expected to produce a visible digital signature watermark?
Alfresco PDF Took kit - version 6.1 Alfresco
I installed Alfresco PDF Toolkit
Alfresco version: 6.1.1
I downloaded the amp from https://github.com/ntmcminn/alfresco-pdf-toolkit/releases
However, error is occurring.
View the log catalina.out
2020-01-17 10: 52: 01,074 ERROR [scripts.forms.FormUIGet] [http-nio-8080-exec-1] org.alfresco.repo.forms.FormException: 00170026 Failed to find appropriate FormProcessor to generate Form for item : [pdf-action] pdf-split
Error splitting
An error occurred while the form was about to be displayed.
What can it be?
Thanks a lot!
Error on Alfresco 6.0
When I try to install pdf addon toolkit alfresco generates the following error:
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1301),
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.updateAdminUserWhenDefault' defined in URL [jar:file:/usr/local/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-7.22.jar!/alfresco/patch/patch-services-context.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.web.app.ResourceBundleBootstrap] for bean with name 'bootstrapExtraBundlesBean' defined in file [/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org.alfresco.extension.pdftoolkit/module-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.web.app.ResourceBundleBootstrap,
2018-10-29 19:37:15,941 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed,
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498),
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576),
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320),
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222),
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846),
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511),
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875),
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:726),
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863),
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546),
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400),
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291),
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103),
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70),
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4753),
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5215),
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150),
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752),
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:129),
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:150),
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:140),
at java.security.AccessController.doPrivileged(Native Method),
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734),
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141),
at java.util.concurrent.FutureTask.run(FutureTask.java:266),
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149),
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624),
at java.lang.Thread.run(Thread.java:748),
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.alfresco.web.app.ResourceBundleBootstrap] for bean with name 'bootstrapExtraBundlesBean' defined in file [/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org.alfresco.extension.pdftoolkit/module-context.xml]; nested exception is java.lang.ClassNotFoundException: org.alfresco.web.app.ResourceBundleBootstrap,
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1379),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:663),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:630),
... 30 more,
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1794),
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$invokeInitMethods$5(AbstractAutowireCapableBeanFactory.java:1795),
at org.alfresco.repo.admin.patch.impl.AdminUserPatch.afterPropertiesSet(AdminUserPatch.java:117),
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1101),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:341),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:335),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveBean(DefaultListableBeanFactory.java:413),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1098),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:462),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveBean(DefaultListableBeanFactory.java:407),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:485),
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:507),
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1491)
Executing PDF-Toolkit via js
i can't seem to configure PDF-Toolkit to run on a Folder-Level Rule via Javascript.
my goal is to: whenever a Document (PDF) is uploaded to the space (or folder), it would automatically watermarked by using PDF-Toolkit, replacing the original file of course.
below is my code snippet, please tell me if i have a missing or wrong code. else, this might be an issue.
var watermark_action = actions.create("pdf-watermark");
watermark_action.parameters["inplace"] = true;
watermark_action.parameters["destination-folder"] = document.parent;
watermark_action.parameters["watermark-type"] = "text";
watermark_action.parameters["watermark-text"] = "Lorem Ipsum";
watermark_action.parameters["watermark-pages"] = "all";
watermark_action.parameters["watermark-depth"] = "over";watermark_action.parameters["position"] = "center";
watermark_action.execute(document);
i am receiving a
Failure: Failed to execute script 'workspace://SpacesStore/fb7c18ae-0edc-4e1d-9650-85be81dcc711': null
Merge and Append Loses Content Type Meta Data
When performing the above function, a new PDF with standard meta data fields for PDF is created and custom content type information is lost on both PDF's.
page numbering enhancement
Hi Folks,
when using split pdf on one file with 3 pages I would like a result like this:
file-a_pg1of3
file-a_pg2of3
file-a_pg3of3
Any chance to achive this without coding?
Also it would be great to "translate" the "pg" / "pgs" - is this possible or ist this also hardcoded?
thanx in advance,
Mat
Bouncycastle class error using Alfresco CE 5.2
Hi, here is the error I am getting on the browser, no error gets logged on alfresco.log nor catalina.out. Should I be using CE 5.1 instead?
{"status" :
{
"code" : 500,
"name" : "Internal Error",
"description" : "An error inside the HTTP server which prevented it from fulfilling the request."
},
"message" : "com.itextpdf.text.ExceptionConverter: class "org.bouncycastle.asn1.DEREncodable"'s signer information does not match signer information of other classes in the same package",
"exception" : "",
"callstack" : [ ],
"server" : "Community v5.2.0 (re21f2be5-b22) schema 10,057",
"time" : "Sep 26, 2017 2:27:09 PM"
}
Watermark PDF to a new location not working
The new watermarked PDF document isn't created at the specified destination. Rather it executes in place and watermarks the pdf on which the doclib action is executed.
Alfresco (Enterprise). Current version: 4.2.2 (.3 r73878-b57) schema 6,056.
Extract pages from pdf
I have installed this addon on docker installed alfresco 6.2 . While performing the extract pages from pdf it is giving error:
The extract operation failed
Except this all options are working fine
Define Rule Watermark Path
Hello.
I can't create a folder rule with Pdf Watermark.
What is the syntax to specify the exact path of the image file?
Watermark image: ?????
Thanks.
Amp's for Alfresco 4.2f CE
Could someone post working amp's for alfresco 4.2 series Community Edition please?
The 1.2 ones fail to load alfresco @ startup.
Thanks!
Merge PDF fails in alfresco share community edition
We're having this issue on Alfresco Community 4.2.f while using alfresco-pdf-toolkit 1.0.0. The problem also exists in alfresco-pdf-toolkit 1.1.1-beta1
Steps to reproduce:
- Browse to a PDF document in a site on Alfresco Share and click "Merge PDF Document" under Document Actions.
- Select a valid Destination Folder and a different PDF document to append to. Fill in The Destination name and click OK
Observe error dialog "Failure: The merge operation failed". The merged PDF Document is not created.
Copy the source code from Google Code
The source code seems to be missing in the Git repository.
Insert Pages into PDF not working
Hi Guys,
I have the alfresco-pdf-toolkit installed in alfresco 5.1.1 and Insert Pages into PDF functionality does not seem to work.
It says The Insert Operation Failed and with debug turned on, i get only the following in the logs
2016-12-23 12:00:37,762 DEBUG [pdftoolkit.form.PDFActionFormFilter] [http-apr-8080-exec-15] beforeGenerate
2016-12-23 12:00:37,767 DEBUG [pdftoolkit.form.PDFActionFormFilter] [http-apr-8080-exec-15] afterGenerate
2016-12-23 12:01:04,849 DEBUG [pdftoolkit.form.PDFActionFormFilter] [http-apr-8080-exec-17] beforePersist
2016-12-23 12:01:04,849 DEBUG [pdftoolkit.form.PDFActionFormFilter] [http-apr-8080-exec-17] exit beforePersist
Please advise.
Regards,
Kavi
Transform .doc our .docx to pdf action
Hi @douglascrp ,
Its is possible to set the transform/convert option on the previewed document to permit user convert .doc ou .docx documents to .pdf without download it our create an folder rule ??
Adding more than one digital signature invalidates existing digital signatures
Adding one digital signature to a document works great. But when you try to add an additional digital signature you will invalidate all previous digital signatures.
I have created PR #15 which addresses that problem by using the append flag when calling PdfStamper.createSignature. The default will be to always append because I couldn't think of a good reason not to append. If you want to use the old behavior, pass "new-revision" equal to false when invoking the action.
pdf toolkit 1.4 on ubuntu alfresco 5.1 community
Helllo,
when I'm trying to apply_amps I got an 08190001 error saying that module.properties is missing both in repo and share
Any idea ?
how to define destination folder
not really an issue but I did not find any hint for my task:
when creating a short workflow there's only a textbox to define the destination folder. How do I need to specify the folder where the result of my pdf operation should be stored?
thanx in advance
Mat
PDF Toolkit watermarking
Option to add document in destination folder picker
Hi,
I would like to introduce this a UI related bug. In feature like "Extract pages from PDF" select destination picker gives the option to add document also then folders only. And finally gives Operation Failed obviously. And same happens while select document picker, option is to pick folder also and operation failed like in "Append PDF document". Can you please help me how to fix this?
Install alfresco-pdf-toolkit amp successfully but fail to start Alfresco after that
Dear All,
I am using Alfresco 4.2e.
I tried both version 1.2 and 1.3. I applied the amps successfully. But after install the amps, the alfresco failed to start.
The error message in alfresco.log is as follows:
11:23:08,912 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pdf-convert-to-archivable' defined in class path resource [alfresco/module/org.alfresco.extension.pdftoolkit/context/alfresco-pdf-toolkit-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/artofsolving/jodconverter/document/DocumentFormatRegistry
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NoClassDefFoundError: org/artofsolving/jodconverter/document/DocumentFormatRegistry
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
at java.lang.Class.getConstructor0(Class.java:2793)
at java.lang.Class.getDeclaredConstructor(Class.java:2043)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 28 more
Caused by: java.lang.ClassNotFoundException: org.artofsolving.jodconverter.document.DocumentFormatRegistry
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 34 more
I have got the old version 0.98 which do support 4.2c. But it is not supporting 4.2e.
Please advice.
Thanks & Regards,
Frankie
Delete pages does not work with page scheme
When I try to delete a pages in the pdf using the option "use page scheme", the pages did not delete from the pdf.
can I use this for PDF editing on alfresco
can I use this for PDF editing on alfresco???
Using Alfresco 5.1 Community Version
Hi
I am Using Afresco 5.1 after install plugin when i open pdf file and apply all options regaing pdf toolkit
Show error "An error occurred when the form was about to be displayed"
Regards
Alfresco Community 7.2
Please update this repo in latest version thanks!!!
Error when installing
Anyone has an idea on why I get this error when running the apply_amps.bat file? Using Alfresco 5.1 community edition.
02140000 An IO error was encountered during deployment of the AMP into the WAR
Library depency conflit
Hi all,
since I installed alfresco pdf toolkit plugin on my Alfresco 6 instance i'm facing problems between pdf-box and itext pdf version, that occours becouse i've onother plugin (for digital sign) that contain the same librarys on old versions respectly (pdf box 1.8.10-alfresco-patched and itext pdf 5.1.3).
I like to know how can i do to continue using both plugins without facing this problem.
Thanks.
The insert operation failed
I am using alfresco community version i have installed pdf-toolkit-share-1.4.0.amp and pdf-toolkit-repo-1.4.0.amp but while using the insert option it is giving error: The insert operation failed.
Whats the issue...
Split action form when setting the action to execute in a folder rule
The form for the split action is broken when used to define a folder rule.
The Destination folder parameter has not object picker control, but a normal text box and there are 2 check boxes for the Execute in place parameter.
unable to watermark documents with text.
Hello,
I have applied the amps on vanila installation. and tried this add-on. It is working fine with image type but not working with text.
It shows a message on the screen, "The watermark operation failed".
there is no exception on console.
Please guide me over this, why its not working or what should I do to make it working.
Thanks.
No input field if watermark type is text - Watermark issue
AMP files
Could someone please help me? I downloaded the alfresco-pdf-toolkit but can not fine the amp files. Di I create them? what is the process? Kind regards.
Can't get it running on Alfresco Community 6.0
Hi,
I can't run the PDF toolkit on Alfresco Community 6.0. Including the 1.4.0 Amp's in 6.0, I can't even log into my Alfresco installation.
Building the 1.4.2 with mvn install always fails with this error message:
[ERROR] Failed to execute goal on project pdf-toolkit-repo: Could not resolve dependencies for project org.alfresco.extension:pdf-toolkit-repo:amp:1.4.2: Could not find artifact org.springframework.social:spring-social-facebook:jar:1.0.0.RC1 in alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]
Any idea how to run the toolkit on version 6.0 or even build 1.4.2 successfully?
I am not able to run this add-on on Alfresco community edition 5.0
I have tried to run the pdf-toolkit on Alfresco community edition 5.0,but unable to do so. Can you help me to run it on the same.
Regards,
Anurag
Update Google Code Project to point to GitHub
The home page https://code.google.com/p/alfresco-pdf-toolkit/ should be updated to reflect the migration to GitHub.
Error SEVERE: Exception starting filter X509AuthFilter
As I try to compile version 1.4.0 this error happens.
Oct 16, 2018 12:19:40 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter X509AuthFilter
javax.servlet.ServletException: java.lang.NullPointerException
at org.alfresco.web.scripts.servlet.X509ServletFilterBase.init(X509ServletFilterBase.java:103)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at org.alfresco.solr.servlet.Solr4X509ServletFilter.findCores(Solr4X509ServletFilter.java:133)
at org.alfresco.solr.servlet.Solr4X509ServletFilter.checkEnforce(Solr4X509ServletFilter.java:72)
at org.alfresco.web.scripts.servlet.X509ServletFilterBase.init(X509ServletFilterBase.java:73)
... 12 more
install issue on bitnami linux version 201605
Hello,
I have bit problem on the installation pdf-toolkit-repo on bitnami alfresco version 201605 , here're the problem..
root@alfresco-dev-192:/opt/alfresco/apps/alfresco# /opt/alfresco/java/bin/java -jar alfresco-mmt.jar install /home/wedus/pdf-toolkit-repo-1.4.0.amp /opt/alfresco/apache-tomcat/webapps/alfresco.war -preview
Installing AMP '/home/wedus/pdf-toolkit-repo-1.4.0.amp' into WAR '/opt/alfresco/apache-tomcat/webapps/alfresco.war'
INFO: Checking the war version using /WEB-INF/classes/alfresco/version.properties
Adding files relating to version '1.4.0.1603211031' of module 'pdf-toolkit-repo'
- File '/WEB-INF/lib/jetty-http-7.4.0.v20110414.jar' added to war from amp
- File '/WEB-INF/lib/jetty-security-7.4.0.v20110414.jar' added to war from amp
- File '/WEB-INF/lib/junit-remote-3.jar' added to war from amp
- File '/WEB-INF/lib/junit-4.11.jar' added to war from amp
- File '/WEB-INF/lib/jetty-io-7.4.0.v20110414.jar' added to war from amp
- File '/WEB-INF/lib/pdf-toolkit-repo-1.4.0.jar' added to war from amp
11060001 An error was encountered during deployment of the AMP into the WAR: 11060000 ERROR: The amp will overwrite an existing file in the war '/WEB-INF/lib/slf4j-api-1.7.12.jar'. Execution halted. By specifying -force , you can force installation of AMP regardless of the current war state.
`
and for pdf-toolkit-share seem its okay...
root@alfresco-dev-192:/opt/alfresco/apps/alfresco# /opt/alfresco/java/bin/java -jar alfresco-mmt.jar list /opt/alfresco/apache-tomcat/webapps/alfresco.war
Module 'pdf-toolkit-share' installed in '/opt/alfresco/apache-tomcat/webapps/alfresco.war'
- Title: Alfresco PDF Toolkit - Share
- Version: 1.4.0.1603211031
- Install Date: Tue Dec 06 13:21:04 UTC 2016
- Description: Alfresco PDF Toolkit Share customizations
Module 'alfresco-share-services' installed in '/opt/alfresco/apache-tomcat/webapps/alfresco.war'
- Title: Alfresco Share Services AMP
- Version: 5.2.0
- Install Date: Tue Dec 06 13:14:42 UTC 2016
- Description: Module to be applied to alfresco.war, containing APIs for Alfresco Share
Kindly help and advice...
Not able to append encrypted PDFs
When trying to append new pages into a PDF, if any of the source or destination PDF is encrypted, the action fails with the message:
Error: source PDF is encrypted, can't append encrypted PDF documents.
or
Error: destination PDF is encrypted, can't append encrypted PDF documents.
Please help to advise me for install this add-on
Now I use alfresco Community - 5.2.0 running on windows server. I try to read PDF toolkit User guide already. but don't understand . How can I install this add-on in to my alfresco ?
Please help to advise me
Add feature to OCR the pages of each PDF without a text layer, so text appear in Alfresco search results
Would it be possible to add a feature to the Alfresco PDF Toolkit. "Add OCR'ed Searchable Text Layer to Existing PDF Documents that have no searchable text layer," and make it compatible with the new 5.0.
Details of a sensible open source implementation below:
1.Identify all PDF's with no text layer in the repository (it’s easy to identify, in Alfresco, between a PDF with or without a text layer, use the PDFBox library included in Alfresco) and run the following actions, a custom ContentTransformer, on each one of these PDFs:
- split each PDF document into multiple images : one for each page - the open source tool to use is PDFtk.
- run an OCR engine on each image (page), in order to extract the text (and layout) from the image. The input is a PDF document, the output is a hOCR file. The open source tool to use is Tesseract-ocr.
- merge each image page and the its corresponding hOCR file into a PDF. The result will contain the visual content from the input image with a hidden text layer from the hOCR file. The open source tool to use is hOcr2Pdf.
- merge back all PDF's created for each page into a single PDF. The open source tool to use is PDFJoin.
A linux script would run the whole process, called from Alfresco through a custom ContentTransformer.
This is a special ContentTransformer because it has an identical source & target Mime type!
We don’t want Alfresco to use this ContentTransformer in an uncontrollable way, so we created it as “unregistered”, which means that they are not find-able through the Transform service and can be called only by direct reference.
Furthermore, as the OCR processing can be quite demanding for the server processor, best run it at night.
Every night, a job uses PDFBox to find the new PDF documents in the repository with no text layer, and it automatically calls the custom ContentTransformer on each one of them.
Then, the job creates a new version of the PDF document in the repository from the ContentTransformer output.
To summarize, we take a multiple-page PDF with only an image layer that we transform into another multiple-page PDF which looks identical, an added hidden text layer behind the scanned images that includes the OCR output. hOCR is an open format based on HTML, which represents an OCR output, by combining layout and style along with the recognized text itself.
Alfresco 5.0 goes weird after encrypting file
When encrypting a file and refreshing the page, I got blank page and Alfresco just display blank pages even when logout, the login page is blank, here the error stack:
2016-06-25 11:28:43,860 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction2] Failed to execute asynchronous action: Action[ id=07b5082c-7762-4118-8b04-7e484ac7e9fe, node=workspace://SpacesStore/07b5082c-7762-4118-8b04-7e484ac7e9fe ]: 05250033 Failed to perform ImageMagick transformation:
Execution result:
os: Windows 8.1
command: F:\Alfresco\imagemagick\convert.exe F:\Alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_source_4765015421439093009.pdf[0] -auto-orient -resize "100x100>" F:\Alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_target_836707460362787561.png
succeeded: false
exit code: 1
out: Error: /invalidfileaccess in pdf_process_Encrypt
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
err: **** This file requires a password for access.
**** The file was produced by:
**** >>>> O/ô©�!<ƒå�PvL˜«mžò’˜�¡fªGS•®¬öãt�ð�‘ ÒÏÊ���Æí¨yüº¿?Í®³4ÁitGùÅã„Öì��+?
'hz¿ R�ò(¦;��¸˜8�¨�Ø_îx„Ì <<<<
GPL Ghostscript 8.64: Unrecoverable error, exit co
org.alfresco.service.cmr.repository.ContentIOException: 05250034 Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2016/6/25/11/28/387fbbe9-463b-40b3-b791-ba4880bc1aa8.bin, mimetype=application/pdf, size=443033, encoding=UTF-8, locale=en_US]
writer: ContentAccessor[ contentUrl=store://F:\Alfresco\tomcat\temp\Alfresco\FailoverTransformer_intermediate_ProxyContentTransformer_1966396143428793070.png, mimetype=image/png, size=0, encoding=UTF-8, locale=en_GB]
options: {use=doclib, contentReaderNodeRef=workspace://SpacesStore/4dff1caf-b7bf-4598-9811-0d71dca6a431, contentWriterNodeRef=null, sourceContentProperty=null, imageAutoOrient=true, targetContentProperty=null, commandOptions=, imageResizeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, percentResize=false, resizeToThumbnail=false, allowEnlargement=false], includeEmbedded=false}
limits: {timeoutMs=120000}
at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:332)
at org.alfresco.repo.content.ContentServiceImpl.failoverTransformers(ContentServiceImpl.java:686)
at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:635)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:129)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy39.transform(Unknown Source)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:439)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:430)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:429)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:404)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 05250033 Failed to perform ImageMagick transformation:
Execution result:
os: Windows 8.1
command: F:\Alfresco\imagemagick\convert.exe F:\Alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_source_4765015421439093009.pdf[0] -auto-orient -resize "100x100>" F:\Alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_target_836707460362787561.png
succeeded: false
exit code: 1
out: Error: /invalidfileaccess in pdf_process_Encrypt
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
err: **** This file requires a password for access.
**** The file was produced by:
**** >>>> O/ô©�!<ƒå�PvL˜«mžò’˜�¡fªGS•®¬öãt�ð�‘ ÒÏÊ���Æí¨yüº¿?Í®³4ÁitGùÅã„Öì��+?
'hz¿ R�ò(¦;��¸˜8�¨�Ø_îx„Ì <<<<
GPL Ghostscript 8.64: Unrecoverable error, exit co
at org.alfresco.repo.content.transform.magick.ImageMagickContentTransformerWorker.transformInternal(ImageMagickContentTransformerWorker.java:199)
at org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker.transform(AbstractImageMagickContentTransformerWorker.java:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy20.transform(Unknown Source)
at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:100)
at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:250)
... 32 more
PDF Toolkit ships with SLF4J API, Jetty, JUnit and Spring test JARs
Since I had to review this addon for potential inclusion in the system of a customer, I noticed a serious problem with the packaging and dependency management. The Repository AMP ships a lot of JARs that it should have never included. Version 1.4.0 ships:
- jetty-http-7.4.0.v20110414.jar
- jetty-security-7.4.0.v20110414.jar
- junit-remote-3.jar
- junit-4.11.jar
- jetty-io-7.4.0.v20110414.jar
- pdf-toolkit-repo-1.4.0.jar
- slf4j-api-1.7.12.jar
- spring-test-3.0.6.RELEASE.jar
- args4j-2.0.16.jar
- jetty-server-7.4.0.v20110414.jar
- itextpdf-5.0.6.jar
- jetty-continuation-7.4.0.v20110414.jar
- jetty-servlet-7.4.0.v20110414.jar
- hamcrest-core-1.3.jar
- jetty-util-7.4.0.v20110414.jar
Most of the JARs are only used for testing since the single test class (TestPDFActionFormFilter) is located in the src/main/java path instead of the more appropriate src/test/java path for unit tests. In at least one instance (SLF4J API) the inclusion of the JAR may pose a compatibility problem for anyone installing the AMP, since the version of the JAR may be different from what is being used in a specific Alfresco Repository version, and abritrary classpath loading order (often dependent on OS file listing order) could end up loading the wrong version.
"File name too long" Exception
We have been using parts of your code, and recently we faced the above error.
When the document name in Alfresco was very large (e.g. >255 chars) we were getting AlfrescoRuntimeException :
org.alfresco.error.AlfrescoRuntimeException .. ... "File name too long"
A fix that worked for us, was to use the nodeRef id also in the name of the temp document at:
https://github.com/ntmcminn/alfresco-pdf-toolkit/blob/6b4a14bb22652fdd07b7b05efb121102a2ed9b84/pdf-toolkit-repo/src/main/java/org/alfresco/extension/pdftoolkit/service/PDFToolkitServiceImpl.java#L1448
e.g.
File file = new File(toolkitTempDir, nodeRef.getId());
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.