Wrong doc for PDF pages generation

This commit is contained in:
Marc Delisle
2005-03-01 14:01:18 +00:00
parent 2ed722c272
commit 5aa99e300f
2 changed files with 31 additions and 38 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-03-01 Marc Delisle <lem9@users.sourceforge.net>
* bug #1153684, wrong doc for PDF pages generation,
thanks to Ryan Schmidt
2005-02-27 Alexander M. Turek <me@derrab.us> 2005-02-27 Alexander M. Turek <me@derrab.us>
* libraries/sqlparser.data.php: Added missing MySQL functions STR_TO_DATE * libraries/sqlparser.data.php: Added missing MySQL functions STR_TO_DATE
and GET_FORMAT (bug #1152310). and GET_FORMAT (bug #1152310).

View File

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