mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-02-16 11:50:54 +01:00
more work on -stamp-as-xobject
This commit is contained in:
parent
e6afa6e8f2
commit
090dd50e02
2
cpdf.ml
2
cpdf.ml
@ -2549,6 +2549,8 @@ let add_page_as_xobject pdf range page name =
|
||||
let xobject_objnum = Pdf.addobj pdf xobject in
|
||||
pdf
|
||||
|
||||
(* n.b the use of change_pages here ensures no inheritable resources in the
|
||||
* stamp, therefore creation of xobject from page is as simple as expected. *)
|
||||
let stamp_as_xobject pdf range over =
|
||||
let prefix = Pdfpage.shortest_unused_prefix pdf in
|
||||
Pdfpage.add_prefix over prefix;
|
||||
|
Loading…
x
Reference in New Issue
Block a user