-
Notifications
You must be signed in to change notification settings - Fork 72
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
Getting error while creating dom object from pdf in liferay using Pdf2Dom #24
Comments
The error you mention does not seem to be related to Pdf2Dom directly. It refers to some JSON operation; Pdf2Dom does not use JSON anywhere. I would recommend debugging your app first. However, the |
I followed the example, the code is working fine in Java Perspective , but it gives me the same error Yes the error is not related to Pdf2Dom directly. In Liferay Perspective, via JsonWS, while calling the service in which this code is written, I am getting this error. |
Can you post the full stack trace not just that one error log line? @radkovo kinda looks like that log statement is actually saying pdf2dom is throwing an error but he doesn't have the log statements setup to show the full stack trace or something. If you're catching the exception either call ex.printStackTrace() or use the apache.commons.lang3 library's ExceptionUtils.getStackTrace(ex) method to get a string that you can pass to log.error() |
The issue was related to Library path. I was accessing the jar file from external source and not from the portlet library. I got it resolved. But now, I am getting this Error: cannot initialize the DOM serializer I am trying to use following code:
Please find below my stack trace:
|
Hello @radkovo , Kindly put some light on this issue. Thanks, |
Hello @radkovo, @m-abboud ,
I want to convert pdf to dom object.
I am trying to use following code:
File file = new File("E:/IETM/ROV.pdf"); PDDocument pdf = PDDocument.load(file); PDFDomTree parser = new PDFDomTree(); Document dom = parser.createDOM(pdf); return dom.toString();
But I am getting following error:
11:49:01,544 ERROR [http-nio-8080-exec-10][JSONWebServiceServiceAction:97] org/fit/pdfdom/PDFToHTML
Kindly let me know where I am going wrong and what should be done to resolve this.
Thanks,
Siddharth
The text was updated successfully, but these errors were encountered: