Color Picker
Quick swatches and full-spectrum custom color selection for annotations.
Color Picker
Offers color selection with:
- Quick Swatches: Black, Red, Yellow (preset colors)
- Custom Colors: Full-spectrum color picker for any color
- Applied To: Pen color, text color, shape fill/stroke
Prop
Type
Implementation
import { PDFAtelier } from '@innosoft/pdf-atelier-react';
export default function ColorPickerExample() {
return (
<PDFAtelier
src="/document.pdf"
license="My License"
showDraw={true}
showText={true}
showRectangle={true}
showColorPicker={true}
/>
);
}import { Component } from '@angular/core';
import { PdfAtelierWrapper } from '@innosoft/pdf-atelier-angular';
@Component({
standalone: true,
selector: 'app-color-picker',
imports: [PdfAtelierWrapper],
template: `
<pdf-atelier-wrapper
[src]="'/document.pdf'"
[license]="'My License'"
[showDraw]="true"
[showText]="true"
[showRectangle]="true"
[showColorPicker]="true"
></pdf-atelier-wrapper>
`,
})
export class ColorPickerComponent {}<script setup lang="ts">
import PdfAtelierWrapper from '@innosoft/pdf-atelier-vue';
</script>
<template>
<PdfAtelierWrapper
:src="'/document.pdf'"
:license="'My License'"
:showDraw="true"
:showText="true"
:showRectangle="true"
:showColorPicker="true"
/>
</template>