is it okay if we just upgrade the aspose words python package to latest version? and how do we check and install all the fonts ?
is it okay if we just upgrade the aspose words python package to latest version?
Yes, you can check here the latest package.
and how do we check and install all the fonts ?
To know what are the fonts you can use the following guide (I usually use the first approach), installing the fonts depends on your operating system, but is usually as simple as downloading them from Google and installing them locally.
Hi,
we tried upgrading the package, but the issue seems to be the same. when it reaches the doc = aw.Document(file_path) statement, it just freezes the code doesn’t move forward, no timeout error, no exception nothing, it stays like this for hours…is there a way out of this statement and raise some exception?
@Sijo.Kolambran the document have a property called warning_callback that can be used to log the errors. But as I said that is a property of the Document object, so you need to have the document to be able to access it. This seems to be an edge case loading documents specifically related with the structure of your file, and without access to that file I cannot provide a solution or raise a new Ticket to be reviewed by our Dev team.
To try to replicate the document structure, can you provide details about how the document is created (what app is used to create it and the version of the app; is preprocessed for a third party application first; etc.)
I couldn’t find any doc string for this doc.warning_callback() function. Can i get some information on how to use this function and what output does it give? this problem has occurred for lot of our documents. Not just a single case. it will be great if you can help me. I will see if the file can manipulated and send it to you.
@Sijo.Kolambran you can find the reference document here and an example of use in the Aspose public GitHub repo (line 2806).
If you are facing the same problem loading several documents, please try to attach one of them to be inspected for us (the documents posted in this forum are only visible by Aspose staff).
Thanks, I will keep you posted after trying this.
@Sijo.Kolambran Unfortunately, in the current version of Aspose.Words for Python there is no way to use callbacks. This feature request is logged as WORDSNET-24685.
FYI @eduardo.canal
This would not work?
doc = aw.Document(file_path)
warnings = aw.WarningInfoCollection()
doc.warning_callback = warnings
for info in warnings:
print(info.source)
Hi attaching one of the sample files, our files have similar structure it’s more like converted pdf to word docx files. In this sample, it doesn’t load all the pages. can you please have a look?WBC_2022_Sustainability_Supplement_docx.docx (1.7 MB)
@Sijo.Kolambran the problem that you have with this document is that it only load the first 10 pages right?
Yes.in some cases it doesn’t load anything for similar documents and it gets stuck in bulk set of files
It neither throws exception that it couldn’t load the file properly or say any message. So even if try to catch exception nothing really happens
@Sijo.Kolambran yes, I noticed what you said, that problem don’t happen with the .NET or Java versions of the API
@Sijo.Kolambran
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-25011
You can obtain Paid Support
services if you need support on a priority basis, along with the direct access to our Paid Support management team.
I read the free support policy, just to decide whether to expedite using paid support, we would need the fix soon. If you can let me know how long will it take for the fix, if it will be too long then probably we will go for paid sort support.
@Sijo.Kolambran to know how long will take the fix the Dev team first need to review it to find the cause, that will probably happen the next week.
No, this will not work until WORDSNET-24685 is not resolved.
I have also closed WORDSNET-25011 defect created by Eduardo. The document is truncated because Aspose.Words is used in evaluation mode. In evaluation mode Aspose.Words has two limitations - it limits the maximum size of the processed document to several hundreds of paragraphs and injects evaluation watermark into the document. Please see our documentation for more information:
https://docs.aspose.com/words/python-net/licensing/
If process the attached document with licensed version, Aspose.Words returns 22 pages.
FYI @eduardo.canal
Hi Team,
we got to test the file in local environment. unfortunately i can’t share the file but can provide some more information. so whenever we run this file this is how it works. even in the debug mode it gets stuck in the same line and neither doc or doc.page_count does return anything. Any help with this information?
@Sijo.Kolambran Unfortunately, it is not possible to tell what the problem is without the problematic document. Please note, it is safe to attach documents in the forum. Only you and Aspose staff can access the attached fieles.