summaryrefslogtreecommitdiff
path: root/poppler-glib/src/poppler-glib_docs_override.xml
blob: 0e9630f1d642b17a1c7b2312e64964bf13779aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<root>

<function name="poppler_document_get_id">
<description>
Returns the PDF file identifier represented as two byte strings of size 32.
@permanent_id is the permanent identifier that is built based on the file contents at the
time it was originally created, so that this identifer never changes. @update_id is the
update identifier that is built based on the file contents at the time it was last
updated.
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
<parameter name="permanent_id">
<parameter_description> Location to store the permanent id array
</parameter_description>
</parameter>
<parameter name="update_id">
<parameter_description> Location to store the update id array
</parameter_description>
</parameter>
</parameters>
<return> %TRUE if the @document contains an id, %FALSE otherwise
</return>
</function>

<function name="poppler_document_find_dest">
<description>
Finds named destination @link_name in @document
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
<parameter name="link_name">
<parameter_description> a named destination
</parameter_description>
</parameter>
</parameters>
<return> The #PopplerDest destination or %NULL if @link_name is not a destination.
</return>
</function>

<function name="poppler_document_get_attachments">
<description>
Returns a vector containing #PopplerAttachment's.
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
</parameters>
<return> a vector of available attachments.
</return>
</function>

<function name="poppler_document_get_n_attachments">
<description>
Returns the number of attachments in a loaded document.
See also Poppler::Document::get_attachments()
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
</parameters>
<return> Number of attachments
</return>
</function>

<function name="poppler_document_get_form_field">
<description>
Returns the #PopplerFormField for the given @id.
</description>
<parameters>
<parameter name="document">
<parameter_description> a #PopplerDocument
</parameter_description>
</parameter>
<parameter name="id">
<parameter_description> an id of a #PopplerFormField
</parameter_description>
</parameter>
</parameters>
<return> a new #PopplerFormField or %NULL if not found
</return>
</function>

<function name="poppler_form_field_get_action">
<description>
Retrieves the action (#PopplerAction) that shall be
performed when the field is activated, or %NULL
</description>
<parameters>
<parameter name="field">
<parameter_description> a #PopplerFormField
</parameter_description>
</parameter>
</parameters>
<return> The action to perform.
</return>
</function>

<function name="poppler_document_get_page">
<description>
Returns the #PopplerPage indexed at @index.
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
<parameter name="index">
<parameter_description> a page index 
</parameter_description>
</parameter>
</parameters>
<return> The #PopplerPage at @index
</return>
</function>

<function name="poppler_document_get_page_by_label">
<description>
Returns the #PopplerPage reference by @label.  @label is a human-readable string
representation of the page number, and can be document specific.  Typically, it is a value
such as &quot;iii&quot; or &quot;3&quot;.

By default, &quot;1&quot; refers to the first page.
</description>
<parameters>
<parameter name="document">
<parameter_description> A #PopplerDocument
</parameter_description>
</parameter>
<parameter name="label">
<parameter_description> a page label
</parameter_description>
</parameter>
</parameters>
<return>The #PopplerPage referenced by @label
</return>
</function>

<function name="poppler_index_iter_new">
<description>
Returns the root #PopplerIndexIter for a document, or %NULL.
</description>
<return> a new #PopplerIndexIter
</return>
</function>

<function name="poppler_index_iter_next">
<description>
Sets the index of the iter to point to the next action at the current level, if valid.
</description>
<parameters>
<parameter name="iter">
<parameter_description> a #PopplerIndexIter
</parameter_description>
</parameter>
</parameters>
<return> %TRUE, if @iter was set to the next action
</return>
</function>

<function name="poppler_index_iter_get_child">
<description>
Returns a newly created child of the iter, or %NULL if the iter has no child.
</description>
<parameters>
<parameter name="parent">
<parameter_description> a #PopplerIndexIter
</parameter_description>
</parameter>
</parameters>
<return> a new #PopplerIndexIter
</return>
</function>

<function name="poppler_index_iter_get_action">
<description>
Returns the #PopplerAction associated with the current iter.
</description>
<parameters>
<parameter name="iter">
<parameter_description> a #PopplerIndexIter
</parameter_description>
</parameter>
</parameters>
<return> a new #PopplerAction
</return>
</function>

<function name="poppler_layers_iter_get_title">
<description>
Returns the title associated with the iter.
</description>
<parameters>
<parameter name="iter">
<parameter_description> a #PopplerLayersIter
</parameter_description>
</parameter>
</parameters>
<return> A string containing the iter's title or %NULL if iter doesn't have a title.
</return>
</function>

<function name="poppler_layers_iter_next">
<description>
Sets the index of the iter to point to the next action at the current level, if valid.
</description>
<parameters>
<parameter name="iter">
<parameter_description> a #PopplerLayersIter
</parameter_description>
</parameter>
</parameters>
<return> %TRUE, if @iter was set to the next action
</return>
</function>

<function name="poppler_layers_iter_get_child">
<description>
Returns a newly created child of the iter, or %NULL if the iter has no child.
</description>
<parameters>
<parameter name="parent">
<parameter_description> a #PopplerLayersIter
</parameter_description>
</parameter>
</parameters>
<return> a new #PopplerLayersIter, or %NULL
</return>
</function>

<function name="poppler_media_get_filename">
<description>
Returns the media clip filename, in case of non-embedded media. filename might be
a local relative or absolute path or a URI
</description>
<parameters>
<parameter name="poppler_media">
<parameter_description> a #PopplerMedia
</parameter_description>
</parameter>
</parameters>
<return> a filename
</return>
</function>

<function name="poppler_media_get_mime_type">
<description>
Returns the media clip mime-type
</description>
<parameters>
<parameter name="poppler_media">
<parameter_description> a #PopplerMedia
</parameter_description>
</parameter>
</parameters>
<return> the mime-type
</return>
</function>

<function name="poppler_media_is_embedded">
<description>
Whether the media clip is embedded in the PDF. If the result is %TRUE, the embedded stream
can be saved with one of the save() functions.  If the result is %FALSE, the media clip
filename can be retrieved with the get_filename() function.
</description>
<parameters>
<parameter name="poppler_media">
<parameter_description> a #PopplerMedia
</parameter_description>
</parameter>
</parameters>
<return> %TRUE if media clip is embedded, %FALSE otherwise
</return>
</function>

<function name="poppler_movie_get_filename">
<description>
Returns the local filename identifying a self-describing movie file
</description>
<parameters>
<parameter name="poppler_movie">
<parameter_description> a #PopplerMovie
</parameter_description>
</parameter>
</parameters>
<return> a local filename
</return>
</function>

<function name="poppler_annot_get_annot_type">
<description>
Gets the type of the annotation
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> #PopplerAnnotType of the annotation.
</return>
</function>

<function name="poppler_annot_get_flags">
<description>
Retrieves the flag field specifying various characteristics of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> the flag field of the annotation.
</return>
</function>

<function name="poppler_annot_set_flags">
<description>
Sets the flag field specifying various characteristics of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
<parameter name="flags">
<parameter_description> a #PopplerAnnotFlag
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_annot_get_name">
<description>
Retrieves the name of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> a string containing the name of the annotation.
</return>
</function>

<function name="poppler_annot_get_page_index">
<description>
Returns the page index to which the annotation is associated, or -1 if unknown
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> page index or -1
</return>
</function>

<function name="poppler_annot_get_color">
<description>
Retrieves the color of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> a #PopplerColor with the color values of the annotation, or %NULL.
</return>
</function>

<function name="poppler_annot_set_color">
<description>
Sets the color of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
<parameter name="poppler_color">
<parameter_description> a #PopplerColor, or %NULL
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_annot_get_contents">
<description>
Retrieves the contents of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> a string containing the contents of the annotation.
</return>
</function>

<function name="poppler_annot_set_contents">
<description>
Sets the contents of the annotation to the given value, replacing the current contents.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
<parameter name="contents">
<parameter_description> a text string containing the new contents
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_annot_get_modified">
<description>
Retrieves the last modification data of the annotation. The returned string will be either
a PDF format date or a text string.  See also Poppler::date_parse()
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnot
</parameter_description>
</parameter>
</parameters>
<return> A string containing the last modification date of the annotation.
</return>
</function>

<function name="poppler_annot_markup_get_label">
<description>
Retrieves the label text of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotMarkup
</parameter_description>
</parameter>
</parameters>
<return> A string containing the label text of annotation.
</return>
</function>

<function name="poppler_annot_markup_set_label">
<description>
Sets the label text of the annotation, replacing the current one.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotMarkup
</parameter_description>
</parameter>
<parameter name="label">
<parameter_description> A text string containing the new label.
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_annot_markup_get_subject">
<description>
Retrieves the subject text of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotMarkup
</parameter_description>
</parameter>
</parameters>
<return> The subject text of the annotation.
</return>
</function>

<function name="poppler_page_render">
<description>
Render the page to the given cairo context. This function is for rendering a page that
will be displayed. If you want to render a page that will be printed use
render_for_printing() instead.
</description>
<parameters>
<parameter name="page">
<parameter_description> the page to render from
</parameter_description>
</parameter>
<parameter name="cairo">
<parameter_description> Cairo::Context to render to
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_page_get_selected_region">
<description>
Returns a region containing the area that would be rendered by render_selection().
</description>
<parameters>
<parameter name="page">
<parameter_description> a #PopplerPage
</parameter_description>
</parameter>
<parameter name="scale">
<parameter_description> scale specified as pixels per point
</parameter_description>
</parameter>
<parameter name="style">
<parameter_description> a #PopplerSelectionStyle
</parameter_description>
</parameter>
<parameter name="selection">
<parameter_description> start and end point of selection as a rectangle
</parameter_description>
</parameter>
</parameters>
<return> a Cairo::Region
</return>
</function>

<function name="poppler_page_find_text">
<description>
Finds @text in @page with the default options (%POPPLER_FIND_DEFAULT) and
returns a vector of rectangles for each occurance of the text on the page.
The coordinates are in PDF points.
</description>
<parameters>
<parameter name="page">
<parameter_description> a #PopplerPage
</parameter_description>
</parameter>
<parameter name="text">
<parameter_description> the text to search for (UTF-8 encoded)
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerRectangle
</return>
</function>

<function name="poppler_page_find_text_with_options">
<description>
Finds @text in @page with the given #PopplerFindFlags options and
returns a vector of rectangles for each occurance of the text on the page.
The coordinates are in PDF points.
</description>
<parameters>
<parameter name="page">
<parameter_description> a #PopplerPage
</parameter_description>
</parameter>
<parameter name="text">
<parameter_description> the text to search for (UTF-8 encoded)
</parameter_description>
</parameter>
<parameter name="options">
<parameter_description> find options
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerRectangle,
</return>
</function>

<function name="poppler_page_get_text_layout">
<description>
Obtains the layout of the text as a vector of #PopplerRectangle.
The position in the array represents an offset in the text returned by get_text()
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
<parameter name="rectangles">
<parameter_description> return location for a vector of #PopplerRectangle
</parameter_description>
</parameter>
</parameters>
<return> %TRUE if the page contains text, %FALSE otherwise
</return>
</function>

<function name="poppler_page_get_text_attributes">
<description>
Obtains the attributes of the text as a vector of #PopplerTextAttributes.  Each list
element is a #PopplerTextAttributes where start_index and end_index indicates the range of
text (as returned by get_text()) to which text attributes apply.
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerTextAttributes
</return>
</function>

<function name="poppler_page_get_link_mapping">
<description>
Returns a vector of #PopplerLinkMapping items that map from a
location on the page to a #PopplerAction.
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerLinkMapping
</return>
</function>

<function name="poppler_page_get_image_mapping">
<description>
Returns a vector of #PopplerImageMapping items that map from a
location on the page to an image of the page.
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerImageMapping
</return>
</function>

<function name="poppler_page_get_form_field_mapping">
<description>
Returns a vector of #PopplerFormFieldMapping items that map from a
location on the page to a form field.
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerFormFieldMapping
</return>
</function>

<function name="poppler_page_get_annot_mapping">
<description>
Returns a vector of #PopplerAnnotMapping items that map from a location on the page to a
#PopplerAnnot.
</description>
<parameters>
<parameter name="page">
<parameter_description> A #PopplerPage
</parameter_description>
</parameter>
</parameters>
<return> A vector of #PopplerAnnotMapping
</return>
</function>

<function name="poppler_annot_text_new">
<description>
Creates a new text annotation that will be located on @rect when added to a page. See
Poppler::Page::add_annot()
</description>
<parameters>
<parameter name="doc">
<parameter_description> The document the text annotation will be added to
</parameter_description>
</parameter>
<parameter name="rect">
<parameter_description> The location of the text annotation on the page
</parameter_description>
</parameter>
</parameters>
<return> A newly created #PopplerAnnotText annotation
</return>
</function>

<function name="poppler_annot_text_set_icon">
<description>
Sets the icon of the annotationg. The following predefined icons are currently supported:
  - POPPLER_ANNOT_TEXT_ICON_NOTE
  - POPPLER_ANNOT_TEXT_ICON_COMMENT
  - POPPLER_ANNOT_TEXT_ICON_KEY
  - POPPLER_ANNOT_TEXT_ICON_HELP
  - POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH
  - POPPLER_ANNOT_TEXT_ICON_PARAGRAPH
  - POPPLER_ANNOT_TEXT_ICON_INSERT
  - POPPLER_ANNOT_TEXT_ICON_CROSS
  - POPPLER_ANNOT_TEXT_ICON_CIRCLE
  .
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotText
</parameter_description>
</parameter>
<parameter name="icon">
<parameter_description> The name of an icon
</parameter_description>
</parameter>
</parameters>
<return></return>
</function>

<function name="poppler_annot_free_text_get_callout_line">
<description>
Retrieves a #PopplerAnnotCalloutLine of four or six numbers specifying a callout
line attached to the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotFreeText
</parameter_description>
</parameter>
</parameters>
<return> A #PopplerAnnotCalloutLine if the annot has a callout
line, %NULL in other case.
</return>
</function>

<function name="poppler_annot_free_text_get_quadding">
<description>
Retrieves the justification of the text of the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotFreeText
</parameter_description>
</parameter>
</parameters>
<return> #PopplerAnnotFreeTextQuadding of the annotation.
</return>
</function>

<function name="poppler_annot_file_attachment_get_attachment">
<description>
Creates a #PopplerAttachment for the file of the file attachment annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotFileAttachment
</parameter_description>
</parameter>
</parameters>
<return> @PopplerAttachment
</return>
</function>

<function name="poppler_annot_file_attachment_get_name">
<description>
Retrieves the name of annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotFileAttachment
</parameter_description>
</parameter>
</parameters>
<return> A string containing the name of the annotation.
</return>
</function>

<function name="poppler_annot_movie_get_movie">
<description>
Retrieves the movie object (PopplerMovie) stored in the annotation.
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotMovie
</parameter_description>
</parameter>
</parameters>
<return> The movie object stored in the annotation.
</return>
</function>

<function name="poppler_annot_screen_get_action">
<description>
Retrieves the action (#PopplerAction) that shall be performed when the annotation is activated
</description>
<parameters>
<parameter name="poppler_annot">
<parameter_description> a #PopplerAnnotScreen
</parameter_description>
</parameter>
</parameters>
<return> The action to perform.
</return>
</function>

</root>