Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keeping image and caption on the same page

Status
Not open for further replies.
Oct 23, 2006
2
US
Greetings,

We're creating a 380 page PDF document from HTML, with Acrobat Standard 7.0 for the Mac. In some cases, an image will appear at the bottom of a page, and its caption at the top of the next. We don't care where on the page -- top, bottom, or anywhere in between -- an image and its caption appear, but we want to keep them on the same page. Can anyone tell me how? Thanks to whoever can help.

Charles Whitaker
 
Such a problem usually occurs when the html page would print larger than a standard letter or legal size document since web page and print pages have no size correlation.

If the doument does not have to actually be printed on paper, you might find that selecting a larger paper size (like legal vs letter) might work or you can make a larger paper size - even longer via Settings on the page setup window. You can also try scaling until the page fits, but this might give you very small text.

You can set the above via Page Setup on the file menu of your browser.

Another trick is to save the whole website and use Word to open it via "open web page" on the file menu. If you can get things to fit the Word page, you cna then save the pdf from that.

Since you're on a mac, you can simply select Print and then "save as pdf" on the print window

Using OSX 10.3.9 on a G4
 
Depending on how the HTML is set up, you could try adding "<p style="page-break-before: always">" before each image tage. Forcing the image over and if enough room text below.

Not certain if this will work on a MAC.

Frontman
 
Thanks to the two responders so far, but nothing mentioned will actually work for us. Choosing a different page size could be used to fix one image-caption split, but would likely break others, since everything in the document would move after a page resizing. Using Word won't work because when Word saves as PDF -- on the Mac anyway -- links become non-functional. Using page breaks before each image would pretty much guarantee that, in 380 pages, we'd have several cases where there'd be 1 or 2 or 3 lines of text at the top of a page, and then we'd jump to a new page with an image at the top. It would keep images and their captions together, but would create other problems.

So, thanks again to jmgalvin and Frontman, but we need a more flexible solution -- some way to indicate to Acrobat that when it converts HTML to PDF, it should keep certain items -- marked in some way -- on the same page. Surely we're not the first users of Acrobat to need to do this?
 
I'd assumed that you'd used the Create PDF from Web page (File menu/create pdf/from web page on Acrobat pro at least).

Maybe you 'd didn't do that. If you use it and choose the website - with appropriate levels, you can click Settings. In settings window you can set various things about links etc and click the Layout button to scale to your selected paper size.

If you didn't do this earlier, you migh give it a go.

Using OSX 10.3.9 on a G4
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top