1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --                    Copyright (C) 2011, AdaCore                    -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  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;