Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert Pages into PDF not working #34

Open
kavi-tanakoor opened this issue Dec 23, 2016 · 3 comments
Open

Insert Pages into PDF not working #34

kavi-tanakoor opened this issue Dec 23, 2016 · 3 comments

Comments

@kavi-tanakoor
Copy link

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
Copy link
Contributor

MariemNf commented Apr 13, 2017

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
Copy link

@MariemNf Can you make a Pull Request ?

MariemNf added a commit to MariemNf/alfresco-pdf-toolkit that referenced this issue Apr 15, 2017
@MariemNf
Copy link
Contributor

@chris001 i have created a pull request ;)

ntmcminn added a commit that referenced this issue May 16, 2017
Fix Bug #34: Insert Pages into PDF not working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants