This commit is contained in:
John Whitington 2023-02-20 19:21:59 +00:00
parent c803c9e511
commit 01726582f9
3 changed files with 18 additions and 3 deletions

View File

@ -98,13 +98,14 @@ let postprocess_json_pdf objnum_to_serial_map pdf obj =
| Some s -> Pdf.add_dict_entry obj "/Parent" (Pdf.Integer s) | Some s -> Pdf.add_dict_entry obj "/Parent" (Pdf.Integer s)
| None -> Printf.eprintf "Warning: Cpdfannot.process_extra_object: could not find serial number\n"; obj | None -> Printf.eprintf "Warning: Cpdfannot.process_extra_object: could not find serial number\n"; obj
end end
| _ -> | _ -> ()
(* If not a popup annoation, remove /Parent. It drags in lots of (*(* If not a popup annotation, remove /Parent. It drags in lots of
extra objects (the whole page tree!) with a widget extra objects (the whole page tree!) with a widget
annotation, and we are unlikely to be able to round-trip them annotation, and we are unlikely to be able to round-trip them
anyway. One day, if we can match FDF properly, it might be anyway. One day, if we can match FDF properly, it might be
possible, but not now. *) possible, but not now. *)
Pdf.remove_dict_entry obj "/Parent" Pdf.remove_dict_entry obj "/Parent"*)
end end
in in
begin match obj with begin match obj with

Binary file not shown.

View File

@ -14,6 +14,7 @@
\excludecomment{dotnetcpdflib} \excludecomment{dotnetcpdflib}
\excludecomment{jcpdflib} \excludecomment{jcpdflib}
\excludecomment{jscpdflib} \excludecomment{jscpdflib}
\usepackage{alltt}
\usepackage{palatino} \usepackage{palatino}
\usepackage{listings} \usepackage{listings}
\usepackage{microtype} \usepackage{microtype}
@ -4314,6 +4315,19 @@ YYYY-MM-DDThh:mm:ssTZD
\pagestyle{fancy} \pagestyle{fancy}
\section{CPDF Change Log}
{\footnotesize\begin{alltt}
\input{Changes}
\end{alltt}}
\section{CamlPDF Change Log}
(CamlPDF is the library CPDF is based upon)
{\footnotesize\begin{alltt}
\input{../camlpdf/Changes}
\end{alltt}}
\backmatter \backmatter
\pagestyle{fancy} \pagestyle{fancy}