[Scribus] Scripter and pdf

VANĚK Petr Petr.VANEK
Tue Dec 7 07:51:11 CET 2004


hi Kobus

I can help you more lately - after I can run scribus at home ;)
but can you add some debug outputs in this function? e.g.:

#include <iostream>
> PyObject *scribus_gettextfill1(PyObject *self, PyObject* args)
> { long frik;
>   char *Name = "";
>   if (!PyArg_ParseTuple(args, "|s", &Name))
>    {PyErr_SetString(PyExc_Exception, ERRPARAM +        
> 	QString("getTextLength([objectname])"));
>     return NULL;
>    }
>   if(!checkHaveDocument())
>    return NULL;
>   PageItem *i = GetUniqueItem(QString(Name));

cout << Name.latin1() << endl;

>   frik=0;
>   if (i->Textflow) // IF TEXTFLOW TRUE MAKE frik=1
{
cout << "if clausule" << endl;
>     frik=1;
}
cout << frik << endl;
> 	 	 
>   return i != NULL ? PyInt_FromLong(frik) : NULL; //RETURN frik
> }

what it writes?

petr

p.s.: what can mean "frik"? :)))




More information about the scribus mailing list