This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/web/knowledge-base/change-default-line-width-ink-annotations.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Change PDF ink annotation line width | Nutrient

To change the default line width for ink annotations, use annotation presets. Here’s example code:

const myAnnotationPresets = instance.annotationPresets;
myAnnotationPresets["ink"] = {
lineWidth: 3
};
instance.setAnnotationPresets(myAnnotationPresets);

Or, if you want to preserve the other values for the ink annotation, use the following code:

myAnnotationPresets['ink'] = Object.assign({}, instance.annotationPresets.ink, {
lineWidth: 3
}

After this is run, if the user clicks the ink tool button, the line width will be set to 3, the new default, until the value is changed.