Hi everybody. I have another question about pdf rendering:
Some of the reports that I am building have to be written in Spanish, so you have to use several special characters (like accents: á, é, í, ó, ú and others like ñ). Using the UTF encoding from libharu (I am using libharu 2.3.0RC2) plus the addFontCollection method for the WPdfRender object, I have been able to load and generate the reports using the above mentioned set of special chars. The problem arise when I try to generate a multipage report. The first page has the special characters perfectly generated but next pages show other symbols in the place that special characters should be. At the Wt session level, the render method of the WPdfRender object displays the following message: “"WPdfImage: cannot read font: 'c:\Windows\Fonts\arial.ttf': expecting a true type font (.ttf, .ttc)" (the same message appears for every font change inside the report) and libharu generates the 0x1019 error code (“Tried to load a font that has been registered”). As commented before, the report is still generated but starting page 2 all special characters are missing and worse than that, replaced with other symbols. The Windows/Fonts folder contains all the font collection including the Arial and Tahoma fonts used in my reports. Any suggestion on what is going on? Thanks again. Regards. ___________________ Mario Diethelm Guallar From: Mario Diethelm Guallar [mailto:mari...@terra.cl] Sent: jueves, 30 de octubre de 2014 09:45 To: witty-interest@lists.sourceforge.net Subject: Re: [Wt-interest] reporting using html and pdf rendering Thank you Koen. Is there any document with the full list of html and CSS supported features? Regards. ___________________ Mario Diethelm Guallar From: Koen Deforche [mailto:k...@emweb.be] Sent: lunes, 27 de octubre de 2014 05:11 To: witty-interest@lists.sourceforge.net <mailto:witty-interest@lists.sourceforge.net> Subject: Re: [Wt-interest] reporting using html and pdf rendering Hey Mario, Wt supports CSS "page-break-before: always" and "page-break-after: always" declarations to force page breaks in multi-page PDFs. Koen 2014-10-27 1:22 GMT+01:00 Mario Diethelm Guallar <mari...@terra.cl <mailto:mari...@terra.cl> >: Hi, continuing with report development for my Web application, I need to include a multipage report. I have built an html source containing the styles for the different classes inside the report plus the report itself. I have put in a different <div> tag entry each report logical page. The report looks fine when I load it in the WText widget used for previewing purposes but when I generate the PDF file, all the different logical pages are written in the same PDF page (just one physical page for several logical pages). I have started from the code presented at the Widgetgallery PDF rendering example. Any idea why the pdf render could be generating just one page? Thanks. Regards. ___________________ Mario Diethelm Guallar From: Mario Diethelm Guallar [mailto:mari...@terra.cl <mailto:mari...@terra.cl> ] Sent: jueves, 23 de octubre de 2014 08:54 To: witty-interest@lists.sourceforge.net <mailto:witty-interest@lists.sourceforge.net> Subject: Re: [Wt-interest] reporting using html and pdf rendering Thanks Wim. A folder under the working directory (let say /images) plus a reference to the folder and the specific file (ie. “/images/file.jpg”) at the “src” attribute level works fine. Regards. ___________________ Mario Diethelm Guallar From: Wim Dumon [mailto:w...@emweb.be] Sent: jueves, 23 de octubre de 2014 04:59 To: witty-interest@lists.sourceforge.net <mailto:witty-interest@lists.sourceforge.net> Subject: Re: [Wt-interest] reporting using html and pdf rendering Hello Mario, Personally I prefer using data URLs in such a case to avoid using image files. If you use image files without path, I can only imagine that you should put them in the current working directory. Best regards, Wim. 2014-10-23 0:11 GMT+02:00 Mario Diethelm Guallar <mari...@terra.cl <mailto:mari...@terra.cl> >: Hi guys, I have built a couple of reports to complement my Web application generating html code in a stream that is pre visualized using a WText widget and then rendering the corresponding PDF file using a WPdfRenderer object (based on the widgetgallery examples). Everything works fine but when I try to add some images from files to my reports I just get the broken image logo when I load the WText widget with the corresponding html stream (I am using just the file name in the “src” property of the img tag without any directory, folder or drive specification). Where do I have to install the actual image files to get them loaded correctly? I am using the built-in httpd connector on a Windows environment. Thanks. ___________________ Mario Diethelm Guallar ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net <mailto:witty-interest@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net <mailto:witty-interest@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
_______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest