words source code:
src.zip (4.8 KB)
origin doc:
测试文档 (1).docx.zip (12.5 KB)
before converted:
after converted:
Please have a check.
words source code:
src.zip (4.8 KB)
origin doc:
测试文档 (1).docx.zip (12.5 KB)
before converted:
after converted:
Please have a check.
Thank you for providing the details and attachments. I will check the provided files and ensure that I address the issue you’re experiencing with Aspose.Words. First, let’s understand what you are trying to achieve and what issues you are facing.
.docx
file into an image/pdf..docx
looks.Download Files and Analyze:
Debug Conversion Code:
src.zip
file’s conversion logic.Replica of Issue:
Provide Solutions:
Download Provided Files:
Extract the src.zip
to understand the code base.
Upload the Original 测试文档 (1).docx
and check the conversion:
using Aspose.Words;
using System.Drawing;
namespace ConvertDoc
{
class Program
{
static void Main(string[] args)
{
try
{
string inputFilePath = @"path\to\your\测试文档 (1).docx";
string outputImagePath = @"path\to\output\image.jpg";
// Load the document
Document doc = new Document(inputFilePath);
// Convert each page of the document to an image
using (Image image = doc.Pages[0].Image)
{
image.Save(outputImagePath, System.Drawing.Imaging.ImageFormat.Jpeg);
}
System.Console.WriteLine("Conversion completed successfully.");
}
catch (Exception ex)
{
System.Console.WriteLine($"An error occurred: {ex.Message}");
}
}
}
}
Analyze and Compare Results:
Resolve Issues:
If the conversion introduces issues such as text overlap, formatting errors, or image quality discrepancies:
Ensure you are using the latest version of Aspose.Words from our releases page.
Review the Aspose.Words Converting Word Documents to Images documentation for additional tips on fine-tuning the conversion process.
Please verify the steps above in your actual code implementation, substitute paths relevant to your setup, and re-check outcomes. If discrepancies persist, your review will help us further diagnose the problem.
Stay tuned for any additional custom configuration recommendations or bug fixes if required.
Thank you for using Aspose.Words and reaching out to support. If you have any additional specific errors or logs, feel free to share them directly. Your feedback helps us improve our products and services.
@hucq_landray_com_cn
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-28480
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.
The issues you have found earlier (filed as WORDSNET-28480) have been fixed in this Aspose.Words for Java 25.8 update.