mirror of
				https://github.com/johnwhitington/cpdf-source.git
				synced 2025-06-05 22:09:39 +02:00 
			
		
		
		
	more
This commit is contained in:
		| @@ -346,6 +346,8 @@ let typeset_table_of_contents ~font ~fontsize ~title ~bookmark ~dotleader ~proce | ||||
|           toc_pageobjnums | ||||
|           toc_structure_items_per_page; | ||||
|       remove_parent_tree_next_key pdf; | ||||
|       (* FIXME: When the subformat is PDF/UA-2 we need to locate the top-level | ||||
|          document and put our content inside it, not before it. *) | ||||
|       begin match Pdf.lookup_chain pdf pdf.Pdf.trailerdict ["/Root"; "/StructTreeRoot"; "/K"] with | ||||
|       | Some (Pdf.Array a) -> | ||||
|           Pdf.replace_chain pdf ["/Root"; "/StructTreeRoot"; "/K"] (Pdf.Array (prepending_structitems @ a)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user