Link to home
Start Free TrialLog in
Avatar of srinivas_vemla
srinivas_vemla

asked on

Distiller giving large margins for HTML Page

Hello Friends,

I have a HTML document that has to be converted to PDF using Acrobat Distiller. Everything looks fine in the converted PDF except for 2 things:

1) The margins are too large on the PDF. So the text keeps wrapping and looks bad.
2) The HTML Tables (with border="0") show a thin transparent border. For ex: If I have a row spanning the whole page and this row is made up of 3 HTML TD's, I can see those TD's in the final PDF even though the border is 0 and therefore they don't appear on the HTML.

Are there any settings that I need to change in the Distiller for these to work?

Regards,
Srinivas
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Distiller cannot convert HTML to PDF. This means that you used something else to convert the HTML. Did you use Acrobat? Did you use a web browser and printed to PDF?
Avatar of srinivas_vemla
srinivas_vemla

ASKER

Hello khkremer,

Thanks for the reply...

What I do is use Adobe Distiller to print HTML files. I guess Adobe Distiller in-turn uses Post Script conversion.

I think Adobe Distiller is using some other application (maybe MS Word) to interpret my HTML file (instead of using Internet Explorer). This different application interpretation seems to add extra margins (because MS Word normally has margins set as: 1, 1, 1.25, 1.25) and also the TDs give lines.

Is there any way in Distiller to tell it to use IE when printing instead of any other application? I am not so clear about how Distiller prints the documents.

Any help will be highly appreciated...

Regards,
Srinivas
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello khkremer,

Thanks for your suggestions. We were using an old plug-in that was developed by one of our ex-developers. We thought that that was part of Adobe stuff...

Later we saw that the component was developed internally to use MS Word application to print to PDF. Thus the HTMLs were also being opened by MS Word and therefore all the formatting issues. We are currently modifying the COM to treat HTML files differently (use IE instead of Word). Hoping that this would solve the issue.

Thanks,
Srinivas
Acrobat (6 and 7) can convert HTML to PDF directly. You can use the "Create PDF from web page" function to create PDF. Another alternative is HTMLDOC (http://www.easysw.com/htmldoc/), which is available both as commercial version and as open source software.
Thanks khkremer,

We could solve the problem using IE object reference. You were right in saying that Distiller would not convert HTML to PDF. Now, we open the HTML using IE and then call the print method and print it to the default printer. All this is done using a COM component.

Thanks again,
Srinivas