@@ -74,6 +74,7 @@ impl PdfSurface {
74
74
}
75
75
76
76
#[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
77
+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
77
78
#[ doc( alias = "cairo_pdf_surface_set_metadata" ) ]
78
79
pub fn set_metadata ( & self , metadata : PdfMetadata , value : & str ) -> Result < ( ) , Error > {
79
80
let value = CString :: new ( value) . unwrap ( ) ;
@@ -88,6 +89,7 @@ impl PdfSurface {
88
89
}
89
90
90
91
#[ cfg( all( feature = "pdf" , feature = "v1_18" ) ) ]
92
+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_18" ) ) ) ) ]
91
93
#[ doc( alias = "cairo_pdf_surface_set_custom_metadata" ) ]
92
94
pub fn set_custom_metadata ( & self , name : & str , value : & str ) -> Result < ( ) , Error > {
93
95
let name = CString :: new ( name) . unwrap ( ) ;
@@ -103,6 +105,7 @@ impl PdfSurface {
103
105
}
104
106
105
107
#[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
108
+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
106
109
#[ doc( alias = "cairo_pdf_surface_set_page_label" ) ]
107
110
pub fn set_page_label ( & self , label : & str ) -> Result < ( ) , Error > {
108
111
let label = CString :: new ( label) . unwrap ( ) ;
@@ -113,6 +116,7 @@ impl PdfSurface {
113
116
}
114
117
115
118
#[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
119
+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
116
120
#[ doc( alias = "cairo_pdf_surface_set_thumbnail_size" ) ]
117
121
pub fn set_thumbnail_size ( & self , width : i32 , height : i32 ) -> Result < ( ) , Error > {
118
122
unsafe {
@@ -126,6 +130,7 @@ impl PdfSurface {
126
130
}
127
131
128
132
#[ cfg( all( feature = "pdf" , feature = "v1_16" ) ) ]
133
+ #[ cfg_attr( docsrs, doc( cfg( all( feature = "pdf" , feature = "v1_16" ) ) ) ) ]
129
134
#[ doc( alias = "cairo_pdf_surface_add_outline" ) ]
130
135
pub fn add_outline (
131
136
& self ,
0 commit comments