Questions tagged [aspose.words]

Aspose is a vendor of components to create, modify, export and convert Office documents.

Aspose is a vendor of components to create, modify, export and convert Office documents like Word, Excel, PDF, PowerPoint, Outlook, etc. from within .NET and Java without the need to have Microsoft Office or Adobe PDF installed.

337 questions
21
votes
8 answers

Docker and Java - FontConfiguration issue

We've got a Java application that generates word documents using a 3rd party (Asposee but I don't think it matters here). The app is built from a simple Docker file: FROM openjdk:10-jdk-slim COPY target/*.jar /opt/ CMD $JAVA_HOME/bin/java $JAVA_OPTS…
phoenix7360
  • 2,807
  • 6
  • 30
  • 41
10
votes
1 answer

How do I get a byte array from HttpInputStream for a docx file?

I am using the method from the first answer in this post: How to create byte array from HttpPostedFile but it doesn't work for .docx files for some reason. //viewmodel.File is HttpPostedFileBase byte[] fileData; using (var binaryReader = new…
wilsjd
  • 2,178
  • 2
  • 23
  • 37
5
votes
1 answer

Copy bullet list number in new document?

I have a node importer which goes like this Dim nodeImporter As New Aspose.Words.NodeImporter(_wordDocument, documentComponentDocument, Aspose.Words.ImportFormatMode.UseDestinationStyles) I am using it to copy childnode from one document to other.…
Manjay_TBAG
  • 2,176
  • 3
  • 23
  • 43
5
votes
1 answer

Upgrading dependent DLL without recompiling the whole application

We have windows service application which is using Aspose.Words.NET version 11.10.0 Now we have recently upgraded the Aspose.Words dll version latest 13.7.0 Since we have already deployed our windows service applications in multiple clients, we…
vijay
  • 635
  • 2
  • 13
  • 26
4
votes
4 answers

System.OutOfMemoryException in Azure but not locally

I have the following code which uses a third party library called Aspose.Words: SaveOptions saveOptions = SaveOptions.CreateSaveOptions(SaveFormat.Docx); saveOptions.MemoryOptimization = true; saveOptions.TempFolder = Path.GetTempPath(); var mm =…
Sniipe
  • 1,116
  • 3
  • 13
  • 28
4
votes
3 answers

Convert a Docx file into Images

I am going to convert a Word Document (.docx) into images so I am using aspose.word.jar! The problem is that I am new to this work and using my code getting an error. My code part is: public class NewClass { public static void main(String[]…
Java Nerd
  • 958
  • 3
  • 19
  • 51
4
votes
1 answer

Aspose PDF memory leak issue

We are using Aspose PDF and are facing the following issues which are sort of show stopper: Aspose PDF is not releasing memory. we have set object to null but they do not release memory. Result - in my web service after 20-30 calls, server memory…
user3800809
  • 41
  • 1
  • 2
3
votes
1 answer

How to get the data of an embedded document inside a word document in Java

I am using Aspose library node collection to read a Word document node by node, but embedded documents are being identified as node of type shape. How can i get the data inside those documents. Is there any way to achieve this using Aspose words or…
lemon chow
  • 303
  • 8
3
votes
1 answer

Aspose after removeChild, the run original font is changed

I have a paragraph para1 and a run, before remove the run, I first keep the run font by Font originFont = run1.getFont(); and I check debug mode, the originFont.getName() return Times New Roman. but then I remove the run…
user1169587
  • 1,104
  • 2
  • 17
  • 34
3
votes
1 answer

Insert text if image doesn't exist Aspose Mail Merge

I'm working on inserting images and here is my code: void IFieldMergingCallback.ImageFieldMerging(ImageFieldMergingArgs e) { if (this.mBuilder == null) this.mBuilder = new DocumentBuilder(e.Document); string filename =…
A. Gladkiy
  • 3,134
  • 5
  • 38
  • 82
3
votes
2 answers

Aspose Calling UpdateFields() on document loses mail merge field data

I am trying to export a Word document (link to a sample file which is not working as expected is given below) to PDF using Aspose. https://1drv.ms/w/s!AheHNqR6oXmSmd5H80L0vzCTfVVrTg The code for the same is as below. var doc=new…
Ananthan Unni
  • 1,304
  • 9
  • 23
3
votes
1 answer

dynamic object to build reports in Aspose.Words LINQ Reporting Engine

I'm getting from client json string: { "Client": { "Name": "John" } } And in document I have the following tag: <<[client.name]>> and try to inject it: var obj = JsonConvert.DeserializeObject(input.DataJson); var engine = new…
A. Gladkiy
  • 3,134
  • 5
  • 38
  • 82
3
votes
2 answers

How do you resolve several-levels-indirect missing dependency hell in Maven/Gradle?

We have a project which depends on Aspose Words' com.aspose:aspose-words:16.10.0:jdk16. The POM for aspose-words declares no dependencies, but this turns out to be a lie. It actually uses jai-core, latest version of which is at…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
3
votes
1 answer

MailMerge #foreach list of strings using Aspose.Words

I'm currently making a MailMerge file and want to show a list of strings. In the past I've used a list of objects (for example Customer) and was able to have something like this in the Word-doc: {{ #foreach Customers }} {{Name}} {{Address}} {{…
Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135
3
votes
2 answers

How to insert custom page number in Aspose.Words

I want to add custom page numbers (like 1/2,2/2) to word document with using Aspose.Words. But I couldn't find any sample for c# language. I tried to overrite footer but i couldn't give a format to page numbers. Pls help! Thanks! edit After i…
Zehra Subaş
  • 463
  • 7
  • 17
1
2 3
22 23