{"id":20,"date":"2008-09-26T07:57:58","date_gmt":"2008-09-26T12:57:58","guid":{"rendered":"http:\/\/coherentpdf.com\/blog\/?p=20"},"modified":"2010-02-16T10:06:14","modified_gmt":"2010-02-16T15:06:14","slug":"pdf-command-line-tools-13-and-camlpdf-progress","status":"publish","type":"post","link":"https:\/\/coherentpdf.com\/blog\/?p=20","title":{"rendered":"PDF Command Line Tools 1.3 and CamlPDF Progress"},"content":{"rendered":"<p><a href=\"http:\/\/www.coherentpdf.com\/\">PDF Command Line Tools 1.3 now out<\/a>, with new features for fonts, better splitting by bookmark, and dozens of smaller improvements.<\/p>\n<p>There will be a new release of <a href=\"http:\/\/www.coherentpdf.com\/ocaml-libraries.html\">CamlPDF<\/a> in the next few months. It will be somewhat backward-incompatible due in part to the changes required to get it cross-compiling with F#, and partly due to some redesigning due to experience.<\/p>\n<p>New modules:<\/p>\n<ul>\n<li>Pdfspace: Colourspaces<\/li>\n<li>Cff: Parse Type 1 Compact Format Fonts<\/li>\n<\/ul>\n<div>Large numbers of other things fixed \/ added. Better text support etc.<\/p>\n<p>And, if there&#8217;s time, the Pdfgraphics module, which lifts a PDF page operator stream, its resources (fonts, colourspaces, images) to an immutable tree of paths, images, clipviews and resources etc, allowing proper structured editing of graphic content with the guarantee that every page can be represented in this format and that the read-edit-write cycle is non-destructive. This is somewhat difficult to get right, though, so may take a while to complete. Here&#8217;s the main part of the (rather large) type Pdfgraphic.graphic:<\/p><\/div>\n<p><code><br \/>\n  and graphic_elt =<br \/>\n  | Path of (path * path_attributes)<br \/>\n  | Text of textblock list * textblock_attributes<br \/>\n  | MCPoint of string<br \/>\n  | MCPointProperties of string * Pdf.pdfobject<br \/>\n  | MCSection of string * graphic_elt list<br \/>\n  | MCSectionProperties of string * Pdf.pdfobject * graphic_elt list<br \/>\n  | Image of image_attributes * int<br \/>\n  | GraphicInlineImage of Pdf.pdfobject * bytestream * Transform.transform_matrix<br \/>\n  | Clip of path * graphic_elt list<br \/>\n  | Shading of path option * shading * Transform.transform_matrix<\/p>\n<p>and graphic =<br \/>\n  {elements : graphic_elt list;<br \/>\n   fonts : fontname list;<br \/>\n   resources : Pdf.pdfobject}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PDF Command Line Tools 1.3 now out, with new features for fonts, better splitting by bookmark, and dozens of smaller improvements. There will be a new release of CamlPDF in the next few months. It will be somewhat backward-incompatible due &hellip; <a href=\"https:\/\/coherentpdf.com\/blog\/?p=20\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ocaml"],"_links":{"self":[{"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":0,"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coherentpdf.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}