Color code attachment

Hi team,

Is this possible to attach color profile with the output pdf.

In the conversion of doc to pdf .The output is having mismatch pdf color with the source .

please me to convert the pdf as same.

Thanks in advance,
pria

@akshayapria

Thanks for your inquiry. We will appreciate it if you please share the source and output file here as ZIP file along with used sample code logic to convert document to PDF. We will look into it and will guide you accordingly.

Hi @rizwan.niazi,

Thanks for your feedback.

The source code is source.zip (861 Bytes)

I am not able to share the file.
The issue is,there is a mismatched color in output file.

please,kindly help me to resolve the issue.

Thanks & regards
pria

@akshayapria

Thanks for writing back with details, please use the PdfSaveOptions while converting doc/docx/… to PDF file formats, please check the following code examples.

Example 1:

Saves a document to PDF without compression.
Document doc = new Document(getMyDir() + "Rendering.doc");

PdfSaveOptions options = new PdfSaveOptions();
options.setTextCompression(PdfTextCompression.NONE);

doc.save(getMyDir() + "Rendering.SaveToPdfNoCompression Out.pdf", options);

Example 2:

Converts a whole document to PDF with three levels in the document outline.
Document doc = new Document(getMyDir() + "Rendering.doc");

PdfSaveOptions options = new PdfSaveOptions();
options.setHeadingsOutlineLevels(3);
options.setExpandedOutlineLevels(1);

doc.save(getMyDir() + "Rendering.SaveToPdfWithOutline Out.pdf", options);

Please click here for more details.

Hi @rizwan.niazi,

I am worked on both cases.Now, also I am not able to get the exact PDF.

please let me know how to solve the issues.

Thanks & regards,
pria.

@akshayapria

Thank you for writing back. Please provide us these details for further investigation.

  • Aspose.Words API version you are using?
  • Input DOC document.
  • Generated output PDF document using Aspose.Words API.
  • Actual expected PDF document.

As soon we get above information, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.