Solved

Adobe, Acrobat, 9 Pro (Macintosh) unable to interpret "page-break-after:always from HTML

Posted on 2008-10-07
9
528 Views
Last Modified: 2012-06-21
in Acrobat 8 if you had the following in your HTML head:

<style>
p.pagebtreak
{
page-break-after:always;
}
.
.
.
<style>

and then in the body html file put:

<p class="pagebreak"></p>

you would force a new  page begining with the text immediately following.

This does not work in Acrobat 9 (or at least not for me in Windows) What is wrong with the code? Or what does work in Acrobat 9

DD
0
Comment
Question by:Deputy-Dawg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
9 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22665325
"p.pagebtreak"  -- I presume that is a typo?

Pagebreak after simply does not work on all browsers.  It works on some, but not others.  If you want the page breaks to be guaranteed at the right place on all user systems, simply save the page as a PDF and let the user download it and print it.  THat is the only way to guarantee the print layout you want.  CSS styling really messes up printed output on many platforms, which is why all major news sites provide a priint button, which removes all DIVs (big cause of print problems) and images, and makes a new page of just the text.  This is the other way to do it, if you want to write double code for every page.
0
 

Author Comment

by:Deputy-Dawg
ID: 22665629
I guess I wasn't clear enough on what the project is. It is to convert a some files in HTML to pdf using in the first instance Acrobat 8 as the "printer" and in the second Acrobat 9 as the printer. The code given cause a page feed in documents created in Acrobat 8 (and in Acrobat 6 as well. It does not work in documents create in Acrobat 9 using the same files used in Acrobat 8 (and 6). According to Adobe it should but it doesn't for me.

And, yes, I agree presenting the documents as Adobe pdf files is the best and cleanest solution for distributing files when it is desired to control the visual appearance of the document. Which is why we desire to convert the HTML into pdf.d
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22665648
do you have both 8 and 9 on the same system?  If so, it will not work, can only use one set of drivers
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

Author Comment

by:Deputy-Dawg
ID: 22665701
As it happens they are on different systems, in fact 8 is on a Mac and 9 (a 30 day trial version) is on a Windows XP machine. The driver problem does not seem to exist in the Mac world. At least not with 6 and 8. I must admit, out of an abundance of caution I have never had both programs active at the same time. So I would hazard that there would be no difficulty with 8 and 9 under the same circumstances..

DD
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 125 total points
ID: 22666220
If you didn't uninstall 8 from the system, 9 will use the same drivers and not work correctly.  This is an ongoing problem with Acrobat, I just got a call about it tonight, where the user could not get rid of the old drivers even after an uninstall.  Put it on system that has NEVER had any version.  Being active at the same time is not the issue, it is totally removing the previous version.  Anyway, it might not work in 9 regardless.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 22668272
This is not a driver problem - creating PDFs from HTML is done in Acrobat, and not via a driver, so even if you have two different versions installed on the same system, it should not matter.

As far as I know, Acrobat 9 uses WebKit as it's rendering engine, so if the same constructs work in Safari, there is something wrong with how Adobe is using WebKit. I also think that the rendering engine was changed from Acrobat 8 to 9 - in general, it's now doing a much better job than the one in Acrobat 8.

I assume you came across a bug in Acrobat 9. I'm not an expert on HTML or CSS, so I cannot help you with coming up with a workaround.
0
 
LVL 44

Assisted Solution

by:Karl Heinz Kremer
Karl Heinz Kremer earned 125 total points
ID: 28032701
As I've indicated, the behavior seems to be due to a bug in Acrobat's rendering engine, and there is nothing that the user can do about this besides waiting for Adobe to come up with a fix.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question