Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-10-07
9
Medium Priority
?
546 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

618 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