#1 2013-05-15 17:39:45

mjm73
Member
Registered: 2013-05-15
Posts: 4

HtmlViewer and Pdf are differents

Hello,

I'm using htmlViewer, I build, save and display html files.
I am very interesting by your SynPdf unit. To test this unit I try html2pdf.exe.
The "viewer" of this application show me the exact Html file (with logo and title), but in the Pdf, logo and tittle of my document disappear.

An idea ?

I use a very light document to test, I can send it to you.

Thanks for your beautiful work

Offline

#2 2013-05-15 17:55:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: HtmlViewer and Pdf are differents

Do you use the latest version of SynPDF from http://synopse.info/fossil/wiki?name=Get+the+source ?

A quick search in our forum for THtmlView ("Search" button above) will also give you some hint.

See especially http://synopse.info/forum/viewtopic.php?id=1230

Offline

#3 2013-05-16 06:14:17

mjm73
Member
Registered: 2013-05-15
Posts: 4

Re: HtmlViewer and Pdf are differents

Hello,

Thank you :
- Yes, I have the latest version.
- I look for the change code proposed by RyanC (Ticket 240)

Offline

#4 2013-05-16 20:52:59

mjm73
Member
Registered: 2013-05-15
Posts: 4

Re: HtmlViewer and Pdf are differents

Hello,
My problem (disappearance logo and first line of the title) from HtmlViewer to Pdf, was not a problem of "header" or "Footer", but a problem of "clipping"

with

<HTML>
<HEAD>
<TITLE></TITLE>
<link REL="stylesheet" TYPE="text/css" HREF="qualite.css">
<style TYPE="text/css">
</STYLE>
</HEAD>
<BODY class="indent">
<P> <A NAME="FloatImage"> <IMG SRC="logo2013.png" ALT="logo2013.png" ALIGN="left" HEIGHT="60" WIDTH="60" HSPACE="20"></A></P>
<p CLASS="title">Données statistiques du 01/01/2013 au 31/12/2013</p>
etc...

Logo2013 and "Données statistiques...." are not seen
but

<HTML>
<HEAD>
<TITLE></TITLE>
<link REL="stylesheet" TYPE="text/css" HREF="qualite.css">
<style TYPE="text/css">
</STYLE>
</HEAD>
<BODY class="indent">
<p><BR></p>
<p><BR></p>
<P> <A NAME="FloatImage"> <IMG SRC="logo2013.png" ALT="logo2013.png" ALIGN="left" HEIGHT="60" WIDTH="60" HSPACE="20"></A></P>
<p CLASS="title">Données statistiques du 01/01/2013 au 31/12/2013</p>

all is clean ..
Just inserting

<p><BR></p>
<p><BR></p>

solve problem..

An idea ? Thank you.

Offline

#5 2013-05-17 07:20:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: HtmlViewer and Pdf are differents

Weird...

Could you please create the .wmf file corresponding to the page content, to reproduce the problem?

Offline

#6 2013-05-18 11:40:59

mjm73
Member
Registered: 2013-05-15
Posts: 4

Re: HtmlViewer and Pdf are differents

I can't create wmf files, but I send on your email :

- Two (very light) png file (With and Without "<BR><BR>"
- And Html file, loading this file into your application htm2pdf.exe reproduce problem.

Have a good day.

Offline

Board footer

Powered by FluxBB