On Mon, Jul 07, 2008 at 11:20:10AM +0300, Igor Stirbu wrote:
> Hello Michal,

Hi Igor,

> 
> The issue described by Kai-Cheung Leung is similar but not identical
> with the one described in the thread you mentioned. The patch from
> that thread changes the functionality of page matrix. I have the same
> problem with changing the transformation matrix for all pages in a pdf
> document (but it works for changing one page at a time).
> 
> For this purpose I wrote a script that should do the job but the pdf
> remains unchanged.
> 
> function zoom()
> {
>       f = loadPdf("/home/istirbu/test.pdf");
>       pg = f.getFirstPage();
>       for(; f.hasNextPage(pg); pg = f.getNextPage(pg))
>       {
>               pg.setTransformMatrix([1.3,0,0,1.3,-90,-115]);
>       }
>       f.unloadPdf();
> }
> 
> but the following error message is displayed:
> 
> ! In script '/home/istirbu/.pdfedit/scripts/zoom.qs', line 8:
> ! Error. Exception in Page.setTransformMatrix : Document is read-only

Seems like document is read only. Are you sure that document is _not_
linearized? Please note that manipulation with linearized document is
not supported. You have to delinearize it before you can edit it.

> 
> Thanks,
> Igor

-- 
Michal Hocko

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to