diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.22k stars 1.11k forks source link

Bookmark in Pdf #2718

Open asthaawasthi-laitkor opened 1 month ago

asthaawasthi-laitkor commented 1 month ago

Describe the bug Hi, I am generating pdf and trying to create TOC also , i used bookmark prop ,but in output there is no document outline. using "@react-pdf/renderer": "^2.0.19"

 <View style={{text_aling: "center", width: "100%", flexDirection: "column"}}>
                          <Text bookmark={{ title: "Section" + code_reference.section_principal, fit: true }} style={{ text_aling: "center", width: "100%", fontSize: 13, fontWeight: "bold", fontFamily: 'Helvetica-Bold'}} >Section {code_reference.section_principal} </Text>
                          {(code_reference.section_principal_sub_1 == 1) && (

image