1. ------------------------------------------------------------------------------ 
  2. --                  GtkAda - Ada95 binding for Gtk+/Gnome                   -- 
  3. --                                                                          -- 
  4. --                     Copyright (C) 2011-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. package Cairo.PDF is 
  25.  
  26.    function Create 
  27.      (Filename         : String; 
  28.       Width_In_Points  : Gdouble; 
  29.       Height_In_Points : Gdouble) return Cairo_Surface; 
  30.    --  Creates a PDF surface of the specified size in points to be written to 
  31.    --  filename. 
  32.    -- 
  33.    --  filename : 
  34.    --   a filename for the PDF output (must be writable), NULL may be used to 
  35.    --   specify no output. This will generate a PDF surface that may be queried 
  36.    --   and used as a source, without generating a temporary file. 
  37.    --  width_in_points: 
  38.    --   width of the surface, in points (1 point == 1/72.0 inch) 
  39.    --  height_in_points: 
  40.    --   height of the surface, in points (1 point == 1/72.0 inch) 
  41.    --  Returns: 
  42.    --   a pointer to the newly created surface. The caller owns the surface and 
  43.    --   should call cairo_surface_destroy() when done with it. This function 
  44.    --   always returns a valid pointer, but it will return a pointer to a "nil" 
  45.    --   surface if an error such as out of memory occurs. You can use 
  46.    --   cairo_surface_status() to check for this. 
  47.    -- 
  48.    --  Since 1.2 
  49.  
  50. end Cairo.PDF;