Few questions

Hello
Few queries if you don’t mind please?

ImageSaveOptions.Resolution what is the default value? And min / max possible/recommended value?

When saving mhtml to DOC, setting DocSaveOptions.SaveRoutingSlip to True or False does not have a difference, can you please kindly advise what’s SaveRoutingSlip exactly? And recommended value?

OoxmlSaveOptions is for saving as DOCX right? So, the default value of OoxmlSaveOptions.KeepLegacyControlChars is not mentioned in the help file, what’s your recommended value for it?

When converting mhtml to pdf and PdfSaveOptions.EmbedAttachments = True
If source mhtml has attachments, target PDF will not have those attachments!

When using Words to convert, like mhtml to pdf, with no editing, UpdateFields shall be True or False?
Setting this to True will cause slower saving?

Thanks

@australian.dev.nerds

  1. The default value of ImageSaveOptions.Resolution is 96dpi. This property is a shortcut for setting both ImageSaveOptions.HorizontalResolution and ImageSaveOptions.VerticalResolution

  2. DocSaveOptions.SaveRoutingSlip specifies whether to preserve routing slip while saving document as DOC, if the document contains it. Recommended and default value for this property is true.

  3. Yes, OoxmlSaveOptions is for saving document as Docx, Docm, Dotx, Dotm or FlatOpc. OoxmlSaveOptions.KeepLegacyControlChars specifies whether to keep original representation of legacy control characters. Default and recommended value for this property is false.

  4. PdfSaveOptions.EmbedAttachments specifies whether or not to embed attachments, i.e. embedded OLE objects, to the PDF document.

  5. If your document contains fields that needs to be updated while saving document, you should keep PdfSaveOptions.UpdateFields enabled.

1 Like

Hello and thanks:

Just kindly inform me of min / max accepted values :slight_smile:

@australian.dev.nerds There is no min/max restrictions of resolution value in Aspose.Words code. The only restriction is that resolution value must be greater than zero.
However, since Aspose.Words uses System.Drawing or Skisharp (in. NET Standard and .NET6 versions) to write images, resolution value might be restricted by these libraries. Here is a good explanation for System.Drawing:
https://stackoverflow.com/questions/29175585/what-is-the-maximum-resolution-of-c-sharp-net-bitmap

Thanks, to finish, kindly advise what type of anti aliasing is in save options used?
https://en.wikipedia.org/wiki/Anti-aliasing

@australian.dev.nerds Aspose.Words does not implement anti aliasing itself. This options simply enables anti aliasing in System.Drawing or Skisharp, depending on the platform.