Pages as pdf?
As stated before, you should downlod the new version 2.4.3. Here is a quick solution proc savePageAsPdf { pageObj filename } { # create a new empy pdf set newpdfObj [mupdf::new $filename] # add a new (blanc) page - with the same size of the original page $newpdfObj addpage 0 -size {*}[$pageObj size] # now newpdfObj has just 1 (blanc) page set graftId [$newpdfObj graft $pageObj] $newpdfObj embed $graftId 0 $newpdfObj close ;# saved ! } # usage ... set pdfObj [mupdf::open ....] set pageNumToSave {...
tclMuPDF 2.4.3
BUG-FIX: crash when using graft method under some circumstances. Now Fixed.
Pages as pdf?
Yes this is possible, and it's not difficult, just play with the methods 'graft' and 'embed' for copying a page in a new pdf ... Unfortunatelly I found a serious bug within the 'graft' method that may crash the application. I'm working for a bug-fixing. Please wait for the new release. coming soon ..
AnotherPage
AnotherPage