Skip navigation
garrisonaw
Currently Being Moderated

Setting margins for "Create PDF from Clipboard"

Jun 19, 2013 9:45 PM

Tags: #clipboard #margins #acrobat_xi_pro #create_pdf_from_clipboard #create_pdf_from_web_page

I'm posting this because I could not find another question that dealt with my problem directly, but after A LOT of searching, and a few failed attempts, I did find the solution.

 

Problem: When creating a PDF from content copied to the clipboard from a webpage, everything on the page was way off-center, with almost no left margin.

PDF_01.jpg

Once the PDF was created, since there is no easy way to adjust page margins, the only way to center everything would have been one page at a time (for 24 pages), by dragging the page contents manually to the center of the page. I tried using the "Set Page Boxes" function, but I ended up with 24 blank pages. Yes, I could export the PDF as a Word document, and then reprint that Word document as a PDF, but I knew there had to be a simpler way.

 

Solution: When you create a PDF from a clipboard containing text (or in the case of the above document, text and images), Acrobat uses the settings for "Create PDF from Web Page."

 

Unfortunately, if you look up Convert clipboard content to PDF in Acrobat Help, it doesn't tell you that. AND the settings for "Create PDF from Web Page" are NOT included in the list of settings under Preferences > Convert to PDF. There is an HTML option in that list, but there are no editable settings for that file type (There are actually quite a few such file types listed there, and my question is, if there are no editable settings, why are they even listed under Preferences?). Batch Conversion of Text Files also uses the same settings.

 

So, here's how to do it:

Select File > Create > PDF from Web Page

PDF_04.jpg

Click on Settings

PDF_02.jpg

To adjust the default margins for new PDF files created from a clipboard containing text, select the Page Layout tab, and adjust the margins to your liking. Notice how small the Default right and left margins are... hence my problem.

PDF_03b.jpg

Click on OK to save your new settings, and the simply Cancel out of the "Create PDF from Web Page" dialog box. If you read this page, it says you have to actually create at least one PDF file using the "Create PDF from Web Page" dialog in order for your settings to stick, but I never did, and my settings were saved just fine.

 

If you're copying basic text (or converting text files), that's all there is to it.

 

With web page content, there could still be a problem (as there was with this web page), if the content you've selected is not the full width of the web page. I think this has to do with the fact that web pages often use Content Style Sheets to format their page elements, and those styles are transferred when you copy that content to the clipboard. The PDF page margins are technically correct now, as you can see by the position of the image at the top of the page, but the text portion (at the bottom of the page) of the PDF only fills the same percentage of the text area (between the margins) as it did on the web page.

PDF_05.jpg

The only solution I have found if this happens, is to export the PDF as a Word document, and adjust the margins there. In the document I was working with in these examples, there were boatloads of different invisible subsections to the document, and each subsection had different settings for right and left indent, fonts, font sizes, etc., so there was a lot more to it than a simple 'copy & paste' type of procedure. Once I corrected all the different elements (and this one had a whole lot of weirdness going on), and then printed it as a new PDF, everything looked much better.

PDF_06.jpg

 

Hopefully this helps someone else find their answer much easier than I found mine

 

And of course, comments and suggestions are welcome.

 
Replies
  • Currently Being Moderated
    Jun 20, 2013 8:33 AM   in reply to garrisonaw

    Did you try working with the Crop tool at all? You can add white space for margins there as well.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 20, 2013 9:43 AM   in reply to garrisonaw

    Is it possible to post the URL so we might investigate as well?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2013 7:44 AM   in reply to garrisonaw

    After tinkering a bit with this, it would appear that the Insert from Clipboard command attempts to use the margins from whatever program the content came from. For example, when I pasted the content into Word and then copied it into Acrobat using the Insert from Clipboard command it launched Word in the background. So, it makes sense that the margins were taken from the Create PDF from web page command since this is where the content came from.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2013 9:49 PM   in reply to garrisonaw

    This was incredibly useful to me! Thanks SOOOO much for taking the trouble to share this in such detail.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 11, 2013 6:50 AM   in reply to garrisonaw

    Right. Wish there was a little more of that attitude in the world. For the rest, I know all about trouble before you posted it!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)