Custom page breaks with "@media print" in CSS when creating a PDF from HTML?

Searching for threads containing the text string "@media print" gave me zero hits, so I guess I'm either the smartest guy in the entire universe for coming up with this idea or the dumbest for the same reason since I must be missing something that everyone else knows by heart without even asking.
Namely, I would like to make use of the CSS "@media print" wrapper when I'm converting an HTML file to PDF through Adobe Acrobat - as opposed to printing an HTML page through a web browser using the Adobe PDF virtual printer device. These are, as I understand it, two equivalent though not entirely identical (as they make use of and rely on somewhat different settings) procedures that both convert an HTML file into a PDF document.
Here's my CSS code:
@media print { span.pagebreak {page-break-before: always} }
And here's my HTML code invoking the page break:
<span class="pagebreak"></span>
Bottom line, this works great when I print the HTML file through my web browser, using the Adobe PDF printer device. However, when converting the HTML file through Adobe Acrobat, this print-related setting is ignored. Obviously, printing and converting a file isn't technically identical but as I said, it's for virtually all intents and purposes the same procedure.
I'm guessing that someone at the Adobe HQ must have thought through this issue during a brainstorming session and come up with a simple yet elegant solution to cater for the needs of those who want to use custom page breaks when converting their HTML documents directly through Adobe Acrobat. Maybe a simple setting somewhere or a custom CSS tag like "@media adobe", or something similar?

I've never heard of anyone succeeding in this.

Similar Messages

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

  • Acrobat crashes when creating a PDF from a web page

    Whenever I ask Acrobat to create a PDF from a web page, it crashes halfway through the process.  Here is an example from the BBC:-
    http://www.bbc.co.uk/news/science-environment-19585341
    Printing to PDF from the browser does not produce an accurate document.  The font is too big, and most of the pictures do not appear.
    I use Acrobat X Pro version 10.1.4.
    This is a PC problem.  On the Mac it works.

    The problem I mentioned is peculiar to Acrobat 10 and also to my PC.  On a Mac I can create PDF's from webpages normally.
    I also notice that when printing to PDF from Opera only the first page comes out.  (Using Firefox all pages are printed to PDF.)

  • Printing database content, or creating a pdf from it

    Gidday guys
    Today I'm researching using AS3 AIR to format and print data from a database.
    It needs to...
    - take the data, and format it from a selection of page formats I present
    - either print it to the printer, or save it to a pdf
    I'm wondering if someone with experience can please nudge me in the right research direction to answer...
    - what's the process for taking data and formatting it into an object to be printed of turned into a pdf?
    - is the object you make for printing a sprite? ie for multi page printing, do you create multiple sprites that contain your data formatted a particular way, and then create a multipage document out of them.
    Cheers for your guidance.

    No that won`t work. AlivePDF uses its own method of embedding fonts (if I remmeber correct you can only use ttf not otf font formats). AlivePDF is not exactly well documented or much used. Its technics are a little "arcane". It was created by the same Guy whose brainchild was Stage3D so you can imagine how complex it is for us mere mortals. A good start is this little blog .
    I also can see why Adobe (who is his boss) isn`t exactly highly motivated to make AlivePDF too much of a Acrobat Double ;-)

  • Create accessible pdf from html pages dynamically

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I created a tool that does just that (only you will need to enter the page numbers as text, it does not work by selecting them):
    Acrobat -- Extract Non-Sequential Pages: http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html

  • Create accessible pdf from html page

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I don't think it's possible to do this using a standard JavaScript script in Acrobat, since the newDoc function doesn't work with URLs.
    The only option I can think of is to use an external automator that will call the Create PDF From Web Page dialog, paste the address from a file, and after the PDF file is created will continue to the next line.
    I might be able to create such a tool for you. If you're interested, contact me by email (click my username for the address) or PM.

  • When attempting to "print" to Adobe or create a pdf from a web page, the "pring/pdf" result has a bunch of unrecognizable characters on the page rather than letters/numbers

    here is an example
    !@#$$$%#@!@$%^^%

    You could open it in the XPS application and check print preview to see if it comes out as TSN suggests (and likely will). You can go to the printer properties and adjust the page size accordingly.
    You can also use the cropping in Acrobat to size all the pages and then use the Protect>Remove Hidden option to remove the cropped area.

  • When attempting to "print" to Adobe or create a pdf from a web page, the "print/pdf" result has a bunch of characters/jibberish on the page rather than recognizable letters/numbers

    What is causing this?

    You could open it in the XPS application and check print preview to see if it comes out as TSN suggests (and likely will). You can go to the printer properties and adjust the page size accordingly.
    You can also use the cropping in Acrobat to size all the pages and then use the Protect>Remove Hidden option to remove the cropped area.

  • Problem creating a PDF from the "print view" of a web page

    When creating a PDF from the "print view" of a web page, the features in the print dialog box overlap. When the PDF is created, the words are garbled. e.g. words apppear as jzhhhxxf or zxihcj.

    Use a job settings that embeds the fonts. If you look at the PDF, the font properties probably do not look correct and don't include embedded fonts. Also, set the printer to Adobe PDF before you try to do a print, so that the web page can try to properly adjust to the printer.
    Why not just try opening the web site directly in Acrobat?

  • Maintain custom page size with bleed

    I use CS4 and when working in Illustrator ( and later taking into a book in InDesign) how do I maintain custom page size with bleed in Illustrator when saving as PDF .
    I have been told my files are not print ready and have no bleed even though I set a bleed and accurate (custom)page size initially. It seems I lose these when I save as a PDF for Printers to use.

    Sometimes and I will check the way I do that, though usually I move from
    from AI ,  save as print quality PDF and still seem to lose the bleed. Is
    there a setting I should be using for the PDF?

  • Print Problem - PDF is OK on Windows 7, but OK on Windows XP with "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

    I have received a PDF which prints fine in Windows 7 but with Windows XP I get "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." and a blank piece of paper passes through the printer. I appreciate that Windows XP is no longer supported but I would like to think that the solution to this problem is not too difficult!
    I have tried Acrobat 9, 10 and 11.
    Any advice (apart from use Windows 7! ) would be most welcome.
    Many thanks.

    If you use the same Adobe Reader versions with the same PDF on Windows 7 and XP, then I would expect the outcome to be the same.
    Is this a local or online PDF?
    If local, is the file really exactly the same?
    If online, in what browser?

  • Allow page breaks with content is Disabled for Subform

    Hi,
    I want to display item data on form.I created a subform and dragged table from data view.
    Allow page breaks with content is grayed out!!
    Plus If i want to add a footer in TABLE option this is also grayed out!! Can't we create a footer from the dragged table?
    FYI.. I went to hierarchy view created subform right click page and then dragged table in to this subform.
    Am i doing it right?
    Rgds
    Vara
    Edited by: Vara K on Feb 5, 2009 8:40 PM

    Resolved myself.
    I was creating subforms in page1 instead of the TOP context node.
    So What I did is created a subform from top node and then i got pagebreak options and then dragged table.. so much fun! with forms.
    rgds
    Vara

  • How can I create one pdf from a FrameMaker Book with mixed page sizes.

    Looking for an easier way to create one pdf from a FrameMaker book that has files with different pages sizes; letter and tabloid.
    So far, I have not been able to find a way to set up the Adobe PDF printer or Distiller to read the page size from the source files in the book and then create one pdf with the appropriate page sizes based on the file sizes in the FrameMaker book. I can create a pdf of the book using a multi-step process where I create a pdf for each page size and then combine them into one file. This is a lot of work.
    Is there a way to set the Adobe PDF printer where it reads page size from the source files and then creates one pdf with a mixed page sizes?
    Using FrameMaker 7 and 10 and Acrobat X Pro.
    Thanks for any suggestions

    http://forums.adobe.com/message/4013068#4013068
    http://forums.adobe.com/message/3519366#3519366
    http://forums.adobe.com/thread/485331?tstart=0

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Using Adobe Pro X I cannot create a PDF from a web page.

    After a recent upgrade from a previous version of Firefox, I am now unable to create a PDF from a web page using the Adobe Pro toolbar on the web page.  A "save as" box appears and then the conversion process dies.  I can print the page using Adobe Pro as my printer and it works fine. I can create other docs with Adobe Pro.   How do I fix this on my browser?
    Thanks.
    WSC

    Browser Troubleshooting
    "Can't view PDF on the web"
    http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html
    "Display PDF in browser"
    http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Be well...

Maybe you are looking for

  • Problem in creating a BDC program for transaction cj20n(project sytem)

    Hi all, I am trying to create project,WBS element ,network and activity using a BDC program,   I am able to create to a recording for the transaction cj20n using tcode shdb but when i run the recording it doesnt run properly i am not able to create a

  • "USB Device not Recognized" when shuffle is plugged into computer

    Everytime I plug my shuffle into my Dell laptop it comes up with the message "USB device not recognized". The shuffle doesn't show up in my computer or itunes. I've done some of things that it says to try, but I'd really like to get this fixed and ge

  • Xml data using httpservice

    I am trying the new Flex 3 Beta. On my local machine I am referring to data in results.xml stored in the same folder as the mxml. When I run the program, I get a prompt for local host, choose cancel and my sheet with the data comes up great. Problem:

  • Is WebLogic 6.1sp3 refreshing connections in parellel?

    During our tests, I found WebLogic connection pool refreshing its connections sequentially (refresh one after another). If create a JDBC connection costs 20 seconds (because Oracle Net 8 fail over), then refreshing the second connection will wait 40

  • How do you set the PROJECT END limit?

    Hi there, I know you can drag the right 'bracket' on the bar ruler or you can type in a value in the transport under the tempo. But on my system, I can only get it to bar 21601 and no further. You may be thinking, what am I doing? Composing a 13 hour