[poppler] poppler/glib: poppler-document.cc, 1.13, 1.14 poppler-document.h, 1.9, 1.10

Juerg Billeter j at bitron.ch
Sat May 21 05:47:56 PDT 2005


On Mit, 2005-05-18 at 10:40 -0700, Kristian Hogsberg wrote:
> RCS file: /cvs/poppler/poppler/glib/poppler-document.cc,v
[...]
>  PopplerPSFile *
> +poppler_ps_file_new (PopplerDocument *document, const char *filename,
> +		     int first_page, int n_pages)
[...]
> @@ -593,9 +595,12 @@
>  
>  	ps_file = g_new0 (PopplerPSFile, 1);
>  	ps_file->document = (PopplerDocument *) g_object_ref (document);
> -	ps_file->out = new PSOutputDev ((char *)filename, document->doc->getXRef(),
> -					document->doc->getCatalog(), 1,
> -					n_pages, psModePS);
> +	ps_file->out = new PSOutputDev ((char *)filename,
> +					document->doc->getXRef(),
> +					document->doc->getCatalog(),
> +					first_page + 1,
> +					first_page + n_pages - 1,
Shouldn't the "- 1" be omitted here? Verbose it'd be (first_page + 1) +
n_pages - 1, i.e. first_page + n_pages.

Regards,

Jürg

-- 
Juerg Billeter <j at bitron.ch>



More information about the poppler mailing list