<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue with pdfbox-1.8.10 dependency while building custom actions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-pdfbox-1-8-10-dependency-while-building-custom/m-p/67718#M22560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am following the alfresco developer series&amp;nbsp;by jeff potts and building custom actions. My requirement is to create custom actions such that they trigger when I upload a pdf and scan the document to perform actions like water marking, OCR, classification, content extraction etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see there is a plugin which does some of the things that I need called pdf-toolkit but it seems to be not working as expected with the latest version of alfresco. Hence I've started creating the custom actions on my own.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using pdfbox 2.0.8 to work with pdf's and was able to successfully convert searchable/non searchable pdfs to text using it directly in java. I have added this version of pdfbox as the dependency to my alfresco project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: Since alfresco automatically pulls in pdfbox 1.8.10, my version of pdfbox was not used and hence I am coming across the following issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: java.lang.NoSuchMethodError: org.apache.pdfbox.pdmodel.PDDocument.getPage(I)Lorg/apache/pdfbox/pdmodel/PDPage;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What options do I have ? What do you suggest ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 05:26:32 GMT</pubDate>
    <dc:creator>hari</dc:creator>
    <dc:date>2018-07-17T05:26:32Z</dc:date>
    <item>
      <title>Issue with pdfbox-1.8.10 dependency while building custom actions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-pdfbox-1-8-10-dependency-while-building-custom/m-p/67718#M22560</link>
      <description>Hello,&amp;nbsp;I am following the alfresco developer series&amp;nbsp;by jeff potts and building custom actions. My requirement is to create custom actions such that they trigger when I upload a pdf and scan the document to perform actions like water marking, OCR, classification, content extraction etc.&amp;nbsp;I see there i</description>
      <pubDate>Tue, 17 Jul 2018 05:26:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-pdfbox-1-8-10-dependency-while-building-custom/m-p/67718#M22560</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2018-07-17T05:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with pdfbox-1.8.10 dependency while building custom actions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issue-with-pdfbox-1-8-10-dependency-while-building-custom/m-p/67719#M22561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot / should not build any customisations / extensions of Alfresco that require / bundle different library versions than what is shipped with Alfresco.&amp;nbsp;Such conflicts arise from&amp;nbsp;classloading issues where parts / all of the code may be loaded from a library that is incompatible to what Alfresco is expecting in some place, or to what your extension may expect. The load order (which version "wins") is somewhat non-deterministic as it depends on both the JVM, application server classloader and the operating / file system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:20:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issue-with-pdfbox-1-8-10-dependency-while-building-custom/m-p/67719#M22561</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-07-17T16:20:32Z</dc:date>
    </item>
  </channel>
</rss>

