Skip navigation
jds zigzag
Currently Being Moderated

Problem with .PDF files from .html files at pagebreaks

Apr 16, 2012 3:48 PM

If there is a better forum to pose this problem, please tell me.  I have tried Dreamweaver without any results.

 

I am using DW CS5.  When I make a .pdf from the .html file it is not handling the images with captions correctly, or even consistently, at the bottom of the .pdf page.

 

Here is the Link to the .html code:

 

http://www.schembs.com/0_PDF_PAGE_PROBLEM.htm


and to the .css, if you need it:

 

http://www.schembs.com/0_PDF_files/2011_ZachBuch_No_Lines.css


The test page repeats the same image with caption several times.


See at the bottom of page 1 of the .pdf. There is not enough space for Image #3 so it correctly puts it at the top of page 2.  However it then puts the caption for Image #3 in the vertical position as if there were no page break and Image #3 were positioned just below the caption for Image #2.  Here is a screenshot of the bottom of page 1:

 

SS page 1 bottom.png


It then places image #4 below the caption for Image #3, which results in Image #4 being on top of Image #3.

 

 

 

At the bottom of page 2 there is not space for Image #6 so it puts it at the top of page 3.  It properly places the caption below Image #6 and properly places Image #7.  Here is the bottom of page 2;

 

SS page 2 bottom.png

 

At the bottom of page 3 there is not space for all the lines of the caption, so it puts the last line of the caption for Image #8 at the top of page 4.  This is o.k.  Here is the bottom of page 3:

 

SS page 3 bottom.png

 

I can live with it breaking up the caption (not ideal) but not with the caption overwriting the image or images overwriting images.

 

Thanks very much for your ideas on how to fix this.

 

jds zigzag

 
Replies
  • Currently Being Moderated
    May 3, 2012 5:29 PM   in reply to jds zigzag

    PDFs from HTML pages are dicey at best.  PDF is a print document.  HTML is a web page that doesn't contain page breaks.  In effect you're asking your PDF converter to infer something from the HTML code that doesn't exist.

     

    My best advice is to create your print documents in Word, InDesign, Illustrator or some other desktop publishing application that is better suited to the task.  Then Save or Print to PDF.

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2012 3:41 AM   in reply to jds zigzag

    Hello Jim,

     

    provided I have understood you correctly: I converted your website http://www.schembs.com/0_PDF_PAGE_PROBLEM.htm with my "Adobe Acrobat 9 Pro" into a pdf file and loaded up to my server. You can see the result (in an acceptable quality, even the links on the images are working) here: http://hansgd.de/AdobTest/PDF%20Paging%20Problem%20with%20Images_Capti ons.pdf (I didn't delete the blanks).

     

    Hans-Günter

     

    P.S.

    Your website is written in German langue. You could post your question - if you can't get are an acceptable solution here - in the German forum:

     

    http://forums.adobe.com/community/international_forums/deutsche?view=d iscussions

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2012 10:00 AM   in reply to jds zigzag

    Hello Jim,

     

    in my IE 8 your website looks great, I don't see any overlaps. To show you what I did, here you can follow and check my proceeding by using my (German) "Adobe Acrobat 9 Pro".

     

    Step 1:

    drPdf01.jpg

     

    Step 2:

     

    drPdf02.jpg

    Step 3:

     

    drPdf03.jpg

     

    Step 4:

     

    drPdf04.jpg

     

    I'm sure that you can understand the used German terms, if not, bitte frage mich nachher noch einmal.

     

    Good luck! (German: Glück auf!)

    Hans-Günter

     

    P.S.

    Would you say where in one of these countless "St. Alban's" did you find these "Fratzensteine"?

     
    |
    Mark as:
  • Currently Being Moderated
    May 5, 2012 4:50 AM   in reply to jds zigzag

    Hello Jim,

     

    do you want to preserve the pattern of your "Fratzenstein's" one under the other, what means you have to scroll (here) from image 1 to 11. Contrary hereto I became convinced, your  should better use a slideshow. There are many interesting offers, I for my part, I use very often this here:

     

    http://lokeshdhakar.com/projects/lightbox2/. (You could have a look here: http://hansgd.de/sail/.)

     

    Good luck!

    Hans-Günter

     

    P.S.

    In the meantime I had a look to the "origin" http://www.schembs.com/, fine idea to bring all the roots together!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 7:54 PM   in reply to jds zigzag

    A nice solution I found when using the hiqpdf html to pdf library in one of my projects and it involves adding the page-break-inside  avoid on the image/caption group.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 11, 2012 2:17 AM   in reply to jds zigzag

    Hello Jim,

     

    apropos, had you been successful with your planned presentation?

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 27, 2012 2:03 PM   in reply to jds zigzag

    Hello Jim,

     

    we never talked about "When I make a .pdf from the .html file it is not handling ..." Is it really necessary to do that?

     

    If I understand right your matter, so you must have all the "Exponate aus dem Ortsmuseum" images, because the are in your html file, right? In this case ist's really no problem to insert these images (in two sizes) in a lightbox slideshow.

     

    To see what I mean, I made this draft here: http://www.mediterrano-loewe.de/LBIC/SchembsL.php.

     

    On the other hand, I'm sure that our potential is not yet exhausted!

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 1, 2012 2:30 AM   in reply to jds zigzag

    Hello Jim,

     

    "thanks for your persistence" we germans have to help each other too!

     

    The first would be that you make this site accessible only to family members. But this problem you have already solved (see here: Entry is available only with a username and password> Click here to enter the WORLD SITE.).

     

    The second - I dare not to say this-is use browser's print possibilities (I can give you an overview of the processuse only by using the images from your website.).

     

    drPdf02.jpg

     

    which leads to:

     

    drPdf01.jpg

     

    ... and now you can print the website(s) without a detour through converting from html to pdf. Or did I still misunderstand you?

     

    Hans-Günter

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 1, 2012 5:04 AM   in reply to jds zigzag

    ... and for some single images, your relatives can use reightclick. In this case (protected website) should it be no problem for you. (You remember our thread about protected images?)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points