AR
Size: a a a
AR
MB
VH
RB
A
classnames
A
RB
SK
SK
M
DB
M
DB
M
DB
newWin = window.open(url);
newWin.postMessage({src});
M
E
E
ES
Font.register({ family: 'Roboto', src: 'https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap' });
const styles = StyleSheet.create({
page: {
fontFamily: 'Roboto',
fontWeight: 'thin',
flexDirection: 'row',
backgroundColor: '#E4E4E4'
},
section: {
margin: 10,
padding: 10,
flexGrow: 1
}
});
const MyDocument = (
<Document>
<Page size="A4" style={styles.page}>
<View style={styles.section}>
<Text>Сессия #1</Text>
</View>
<View style={styles.section}>
<Text>Сессия #2</Text>
</View>
</Page>
</Document>
);
const [instance, updateInstance] = usePDF({ document: MyDocument });
return(
<a href={instance.url} download="test.pdf">
Download
</a>
);
AR