You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/the-basics/index.rst
+55-56Lines changed: 55 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -721,11 +721,11 @@ To add a blank page, do the following:
721
721
722
722
.. code-block:: cs
723
723
724
-
(int w, int h) = Utils.PageSize("letter-l"); // 'Letter' landscape
724
+
(int w, int h) = Utils.PaperSize("letter-l"); // 'Letter' landscape
725
725
Page page = doc.NewPage(width: w, height: h);
726
726
727
727
728
-
The convenience function :meth:`PageSize` knows over 40 industry standard paper formats to choose from. To see them, inspect dictionary :attr:`paperSizes`. Pass the desired dictionary key to :meth:`PageSize` to retrieve the paper dimensions. Upper and lower case is supported. If you append "-L" to the format name, the landscape version is returned.
728
+
The convenience function :meth:`PaperSize` knows over 40 industry standard paper formats to choose from. To see them, inspect dictionary :attr:`paperSizes`. Pass the desired dictionary key to :meth:`PageSize` to retrieve the paper dimensions. Upper and lower case is supported. If you append "-L" to the format name, the landscape version is returned.
729
729
730
730
Here is a 3-liner that creates a |PDF|: with one empty page. Its file size is 460 bytes:
731
731
@@ -739,7 +739,7 @@ To add a blank page, do the following:
739
739
**API reference**
740
740
741
741
- :meth:`Document.NewPage`
742
-
- :meth:`Utils.PageSize`
742
+
- :ref:`PaperSize`
743
743
744
744
745
745
----------
@@ -790,62 +790,55 @@ Using the :meth:`Document.InsertPage` method also inserts a new page and accepts
790
790
Splitting Single Pages
791
791
~~~~~~~~~~~~~~~~~~~~~~~~~~
792
792
793
-
This deals with splitting up pages of a |PDF| in arbitrary pieces. For example, you may have a |PDF| with *Letter* format pages which you want to print with a magnification factor of four: each page is split up in 4 pieces which each going to a separate |PDF| page in *Letter* format again.
793
+
Splitting considers creating new |PDF| documents from an existing input file. To split we need to find the pages we are interested in and insert them into a new |PDF| document.
0 commit comments