Good day All,
When I use the Insert pages into PDF feature in Alfresco, I always get an insert pdf failure prompt like the image below:
I do not know where to get the logs from to show what is happening at the backend but if anyone can direct me on how to get the logs or which file the logs reside in, I would be grateful.
I look forward to your responses.
Thanks and BR,
Ejike
Seems like you are using pdf-toolkit may be this one if so: https://github.com/OrderOfTheBee/alfresco-pdf-toolkit/tree/master
try enabling debug logs for following (<YourAlfrescoInstallPath>/tomcat/shared/classes/alfresco/extension/custom-log4j.properties):
log4j.logger.org.alfresco.extension.pdftoolkit=DEBUG
with abobe logger you will get any additional into in <YourAlfrescoInstallPath>/alfresco.log and <YourAlfrescoInstallPath>/tomcat/logs/catalina.out
Additionally you can check browser console and network to see if requests are being sent correctly.
Good day @abhinavmishra14 ,
Yes I am using the pdf-toolkit.
Find below the images of the files in the extension folder, I see the "custom-log4j.properties.sample" but must it have a "sample" at the end?
Also, please is this also the right the script to enable the DEBUG command?
I look forward to your response.
Kind regards,
Ejike
Yes that seems correct place. No .sample from extension should be removed.
The file should just be as: custom-log4j.properties
Good day @abhinavmishra14 ;
I have added the debug code as instructed and I have run the "insert" operation from the alfresco pdf-toolkit but it has failed.
Please where do I get the logs from, so I can post it here for the neccessary support?
regards,
Ejike
Good day @abhinavmishra14 @angelborroy please can you assist me
Can you share the file path, name of the file and what's in it?
Usually all these logs can be checked in alfresco.log and/or catalina.out in your installation.
Good day,
Find below the following information you requested for:
1. File path: http://localhost:8080/share/page/document-details?nodeRef=workspace://SpacesStore/8ac94eb2-24ec-4167...
2. Name of file: alfresco_one_5.1_on-premises_reference_architecture.pdf
3. Whats in it: Documentation on Alfresco one version 5.1
I look forward to hearing from you.
Thanks,
Ejike
@ejike wrote:
Good day @abhinavmishra14 ;
I have added the debug code as instructed and I have run the "insert" operation from the alfresco pdf-toolkit but it has failed.
Please where do I get the logs from, so I can post it here for the neccessary support?
regards,
Ejike
Hey i was refreshing to this message. You mentioned that, you have added log configs so wanted to check about that. I don't need to know nodeRef or content of your pdf examples.
Also check the alfresco.log and catalina.out under your installation. All logs are usually written in these two files.
These files could be at following locations (possibly depending on how you have setup):
<yourInstallation>/tomcat/logs
<yoursInstallation>/alfresco.log
or
<yourInstallation>/tomcat/alfresco.log
or
<yourInstallation>/logs/alfresco.log
was asking about the path for log4 as you mentioned.
Where do you have the log4j config, please share the path.?
What loggers you have enabled?
Can you share the content of your log4j?
Hi @abhinavmishra14 ,
The path for the log4j config: Alfresco/tomcat/shared/classes/alfresco/extension
I have enabled debugger logs for: #log4j.logger.org.alfresco.extension.pdftoolkit=debug
Find the image below for the loggers:
I look forward to hearing from you.
Regards,
Ejike
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.