pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] [pdf_fsys_item_p] function failed with an existing file


From: Aleksander Morgado
Subject: Re: [pdf-devel] [pdf_fsys_item_p] function failed with an existing file
Date: Mon, 19 Jan 2009 11:41:40 +0100

>> > 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

[Prev in Thread] Current Thread [Next in Thread]