>> > when using the pdf_fsys_item_p function with an exsiting file, the
>> function return PDF_FALSE.
>>
>> Not sure if that is because the pdf_fsys_item_p function failed or
>> due
>> to the problems in managing he pdf_text_t strings... see below.
>>
>> >
>> > path to file has been initialized with
>> > pdfHostEncoding = pdf_text_get_host_encoding();
>> > pdf_text_from_unicode("/path/to/test.pdf", 17, pdfHostEncoding,
>> &text);
>> >
>>
>> You can't use a host encoding in pdf_text_from_unicode(). Try to use
>> the following and let me know if the problem in the pdf_fsys_item_p
>> continues:
>> pdf_text_from_unicode("/path/to/test.pdf", 17, PDF_TEXT_UTF8, &text);
>>
>
> Sorry, I misspelled the name of function I uses : it was 
> pdf_text_new_from_host.
>
> I also tried pdf_text_from_unicode("/path/to/test.pdf", 17, PDF_TEXT_UTF8, 
> &text);
>
> but the result is the same
>

It's a bug then :-)

I will try to reproduce and fix it this afternoon.

Thanks for the report!


Reply via email to