|
580 | 580 | <Example>
|
581 | 581 | <Title>Replace Text in All Pages of PDF</Title>
|
582 | 582 | <Description>In order to replace text in all the pages of a PDF document, you first need to use TextFragmentAbsorber to find the particular phrase you want to replace. After that, you need to go through all the TextFragments to replace the text and change any other attributes. Once you have done that, you only need to save the output PDF using Save method of the Document object. The example elaborates this in detail to replace text in a PDF document.</Description>
|
583 |
| - <FolderName>replacetextinallpages</FolderName> |
| 583 | + <FolderName>replacetextallpages</FolderName> |
584 | 584 | <Order>1</Order>
|
585 | 585 | <DocLink>
|
586 | 586 | <DisplayName>Replace Text in All Pages of a PDF Document</DisplayName>
|
|
622 | 622 | <Example>
|
623 | 623 | <Title>Extract Text from an Individual Page of the PDF Document</Title>
|
624 | 624 | <Description>TextAbsorber class allows you to extract text from a particular page of a PDF document. This class returns the extracted text in Text property. The Accept method of an individual page is called to extract the text. Create objects of Document and TextAbsorber classes. Call Accept method on the individual page, as PageIndex , of Document object. The Index is the particular page number from where text needs to be extracted. You can get text from the Text property of the TextAbsorber class.</Description>
|
625 |
| - <FolderName>extracttxtfrompageofpdfdoc</FolderName> |
| 625 | + <FolderName>extracttextfromindividualpageofpdf</FolderName> |
626 | 626 | <Order>3</Order>
|
627 | 627 | <DocLink>
|
628 | 628 | <DisplayName>Extract Text from an Individual Page of the PDF Document</DisplayName>
|
|
643 | 643 | <Example>
|
644 | 644 | <Title>Search and Get Text from All the Pages of PDF Document</Title>
|
645 | 645 | <Description>TextFragmentAbsorber allows you to find text, matching a particular phrase, from all the pages of a PDF document. In order to search text from the whole document, you need to call the Accept method of Pages collection. The Accept method takes TextFragmentAbsorber object as parameter, which returns a collection of TextFragment objects. You can loop through all the fragments and get their properties like Text , Position ( XIndent , YIndent ), FontName , FontSize , IsAccessible , IsEmbedded , IsSubset , ForegroundColor ** etc.</Description>
|
646 |
| - <FolderName>searchandgettextfrompagesofpdf</FolderName> |
| 646 | + <FolderName>searchandgettextfromallpagesofpdf</FolderName> |
647 | 647 | <Order>4</Order>
|
648 | 648 | <DocLink>
|
649 | 649 | <DisplayName>Search and Get Text from All the Pages of PDF Document</DisplayName>
|
|
659 | 659 | <Example>
|
660 | 660 | <Title>Search and Get Text from a Single Page of a PDF Document</Title>
|
661 | 661 | <Description>TextFragmentAbsorber allows you to find text, matching a particular phrase, from a particular page of a PDF document. In order to search text from an individual page, you need to call the Accept method of that particular as Page Index . The Index represents a particular page number. The Accept method takes TextFragmentAbsorber object as parameter, which returns a collection of TextFragment objects. You can loop through all the fragments and get their properties like Text , Position ( XIndent , YIndent ), FontName , FontSize , IsAccessible , IsEmbedded , IsSubset , ForegroundColor ** etc.</Description>
|
662 |
| - <FolderName>searchandgettextfrompageofpdfdoc</FolderName> |
| 662 | + <FolderName>searchandgettextfromsinglepageofpdf</FolderName> |
663 | 663 | <Order>5</Order>
|
664 | 664 | <DocLink>
|
665 | 665 | <DisplayName>Search and Get Text from a Single Page of a PDF Document</DisplayName>
|
|
675 | 675 | <Example>
|
676 | 676 | <Title>Search and Get Text Segments from All Pages of PDF Document</Title>
|
677 | 677 | <Description>In order to search text segments from all the pages, you first need to get the TextFragment objects from the document . TextFragmentAbsorber allows you to find text, matching a particular phrase, from all the pages of a PDF document. In order to search text from the whole document, you need to call the Accept method of Pages collection. The Accept method takes TextFragmentAbsorber object as parameter, which returns a collection of TextFragment objects.</Description>
|
678 |
| - <FolderName>searchandgettextsegmentsfrompagesofpdf</FolderName> |
| 678 | + <FolderName>searchandgettextsegmentsfromallpagesofpdf</FolderName> |
679 | 679 | <Order>6</Order>
|
680 | 680 | <DocLink>
|
681 | 681 | <DisplayName>Search and Get Text Segments from All Pages of PDF Document</DisplayName>
|
|
691 | 691 | <Example>
|
692 | 692 | <Title>Search and Get Text Segments From an Individual Page of PDF Document</Title>
|
693 | 693 | <Description>In order to search text segments from a single page, you first need to get the TextFragment objects from the document . TextFragmentAbsorber allows you to find text, matching a particular phrase, from an individual page of a PDF document. In order to search text from a particular page, you need to call the Accept method of that particular page as Pages Index . Index represents the page number from where text needs to be extracted. The Accept method takes TextFragmentAbsorber object as parameter, which returns a collection of TextFragment objects.</Description>
|
694 |
| - <FolderName>searchandgettextsegmentsfromanindividualpageofpdfdocument</FolderName> |
| 694 | + <FolderName>searchandgettextsegmentsfromindividualpageofpdf</FolderName> |
695 | 695 | <Order>7</Order>
|
696 | 696 | <DocLink>
|
697 | 697 | <DisplayName>Search and Get Text Segments From an Individual Page of PDF Document</DisplayName>
|
|
723 | 723 | <Example>
|
724 | 724 | <Title>Search and Get Text from a Single Page Using Regular Expression</Title>
|
725 | 725 | <Description>TextFragmentAbsorber helps you search and retrieve text, from a single page, based on regular expression. First you need to pass a regular expression to TextFragmentAbsorber constructor as the phrase. After that you have to set the TextSearchOptions property of the TextFragmentAbsorber object. This property requires TextSearchOptions object and you need to pass true as parameter to its constructor while creating new object. As you want to retrieve matching text from a particular page, you need to call Accept method of that individual page as Pages Index. Index represents the page number. TextFragmentAbsorber returns a TextFragmentCollection containing all the fragments matching the criteria specified by the regular expression</Description>
|
726 |
| - <FolderName>searchandgettextfromasinglepageusingregularexpression</FolderName> |
| 726 | + <FolderName>searchandgettextfromsinglepageusingregularexpression</FolderName> |
727 | 727 | <Order>9</Order>
|
728 | 728 | <DocLink>
|
729 | 729 | <DisplayName>Search and Get Text from a Single Page Using Regular Expression</DisplayName>
|
|
736 | 736 | </InputFiles>
|
737 | 737 | <Type>Console</Type>
|
738 | 738 | </Example>
|
| 739 | + <Example> |
| 740 | + <Title>Replace Text in a Single Page of a PDF Document</Title> |
| 741 | + <Description>N order to replace text in a single page, you need to get TextFragments of that particular page. For that matter, you first need to create TextFragmentAbsorber with the phrase you want to replace. Once you get all the TextFragments , you can loop though them and replace the text and other attributes. After that, you need to save the updated PDF using Save method of Document object.</Description> |
| 742 | + <FolderName>replacetextinsinglepageofpdf</FolderName> |
| 743 | + <Order>10</Order> |
| 744 | + <DocLink> |
| 745 | + <DisplayName>Replace Text in a Single Page of a PDF Document</DisplayName> |
| 746 | + <Url>Replace+Text+in+a+Single+Page+of+a+PDF+Document</Url> |
| 747 | + </DocLink> |
| 748 | + <InputFiles> |
| 749 | + <DataFile> |
| 750 | + <Path>..\data\input.pdf</Path> |
| 751 | + </DataFile> |
| 752 | + </InputFiles> |
| 753 | + <OutputFiles> |
| 754 | + <DataFile> |
| 755 | + <Path>..\data\output.pdf</Path> |
| 756 | + </DataFile> |
| 757 | + </OutputFiles> |
| 758 | + <Type>Console</Type> |
| 759 | + </Example> |
739 | 760 | </Examples>
|
740 | 761 | </Folder>
|
741 | 762 | <Folder>
|
|
0 commit comments