) => {
setIncludeFooter(event.target.checked);
}, [setIncludeFooter]);
return (
);
}
export const PdfExportDialogOptions = () => (
);
type PdfCjkWarningProps = { documentText: string; renderedFontFamily: RenderedFontFamily };
export const PdfCjkWarning = ({ documentText, renderedFontFamily }: PdfCjkWarningProps) => {
const isLatinOnly = LATIN_ONLY_FONT_NAMES.has(renderedFontFamily as FontName);
const hasCjk = hasCjkContent(documentText);
const fallbackFont = getCjkFallbackFont(renderedFontFamily as FontName);
if (!isLatinOnly || !hasCjk) return null;
return (
CJK characters detected. PDF will use {fallbackFont} since {renderedFontFamily} lacks CJK glyphs.
);
};