From 5aa99e300fc85db8f840367d36da3caa1ca97d43 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 1 Mar 2005 14:01:18 +0000 Subject: [PATCH] Wrong doc for PDF pages generation --- ChangeLog | 4 +++ Documentation.html | 65 +++++++++++++++++++--------------------------- 2 files changed, 31 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index b16c2963d..738ba00ea 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-03-01 Marc Delisle + * bug #1153684, wrong doc for PDF pages generation, + thanks to Ryan Schmidt + 2005-02-27 Alexander M. Turek * libraries/sqlparser.data.php: Added missing MySQL functions STR_TO_DATE and GET_FORMAT (bug #1152310). diff --git a/Documentation.html b/Documentation.html index ca99459c3..4f0c0de14 100755 --- a/Documentation.html +++ b/Documentation.html @@ -3473,47 +3473,36 @@ To create a new, empty mimetype please see libraries/transformations/template_ge [6.8] How can I produce a PDF schema of my database?

- First you have to fill the "relation", "table_coords" - and "pdf_pages" configuration variables. + First the configuration variables "relation", + "table_coords" and "pdf_pages" have to be filled in.

- Then, think about your schema layout: which tables will go on which pages. + Then you need to think about your schema layout. Which tables will go on + which pages?

    -
  • Click on your db name in the left frame
  • -
  • Choose "Structure" in the navigation on top
  • -
  • Choose "Edit PDF Pages" which should be somewhere at the - bottom of the page
  • -
  • Enter the name for a first pdf page and submit (you can also use - the "Automatic layout", which will place on your page - all the tables that are linked)
  • -
  • Choose this page to edit
  • -
  • Now add a table you want to show on this page and its coordinates and - submit
    - First you will have to guess those coordinates of course, so just expect - to have an area of about 297 * 210 and put the tables coordinates - somewhere in there, you will be able to have a look at what happened - and change them later.
    - For example, x=100 and y=200 means that the table will be at 200 mm - down and 100 mm right from the upper left corner.
    - Actually if you have a width of more than 300 or a height of more than - 200 then it will automatically be scaled but 200*100 is a good start to - have an idea of what coordinates to use.
  • -
  • There is also a visual editor (scratchboard) available, see the - explanation at the $cfg['WYSIWYG-PDF'] section.
  • -
  • After every table you submitted you will have the possibility to submit - more tables
  • -
  • When you have entered enough tables Click on your db name in the left - frame again
  • -
  • Now, again at the bottom of the page you should be able to choose - "Display PDF schema"
    - For testing it might be useful to show the grid as well, so you can see - the coordinates used.
    - Maybe also choose color and submit.
  • -
  • Save the file he will offer you to something like Schema.pdf - (Internet Explorer has some bug there which might make it offer it - without an extension. Under Windows it is important to have the - extension ".pdf", under other OSes you should be fine just - saving the file under the name it offers).
  • +
  • Select your database in the left frame.
  • +
  • Choose "Operations" in the navigation bar at the top.
  • +
  • Choose "Edit PDF Pages" near the bottom of the page.
  • +
  • Enter a name for the first PDF page and click Go. If you like, you + can use the "automatic layout," which will put all your + linked tables onto the new page.
  • +
  • Select the name of the new page (the action choice being set to Edit) + and click Go.
  • +
  • Select a table from the list, enter its coordinates and click Go.
    + Coordinates are expressed in millimeters; your diagram will + be automatically scaled to fit the page. When initially placing tables + on the page, just pick any coordinates -- say, 50x50. After clicking + Go, you can then use the graphical editor to + position the element correctly.
  • +
  • When you'd like to look at your PDF, first be sure to click the Go + button beneath the list of tables and coordinates, to save any changes + you made there. Then scroll all the way down, select the PDF options + you want, and click Go.
  • +
  • Internet Explorer for Windows may suggest an incorrect filename when + you try to save a generated PDF. When saving a generated PDF, be + sure that the filename ends in ".pdf", for example + "schema.pdf". Browsers on other operating systems, and other + browsers on Windows, do not have this problem.