OrderOfTheBee / alfresco-pdf-toolkit

67 stars 58 forks source link

Insert Pages into PDF not working #34

Open kavi-tanakoor opened 7 years ago

kavi-tanakoor commented 7 years ago

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

MariemNf commented 7 years ago

I have added PDF-Toolkit as source project and i have fixed this bug by changing a simple line retrieved in class PDFToolkitServiceImpl @method insertPDF: change ContentReader insertReader = getReader((NodeRef)params.get(PARAM_TARGET_NODE)); to ContentReader insertReader = getReader((NodeRef)params.get(PARAM_INSERT_CONTENT));

chris001 commented 7 years ago

@MariemNf Can you make a Pull Request ?

MariemNf commented 7 years ago

@chris001 i have created a pull request ;)