UnlockKey | コードから呼び出すものはありません |
NewDocument | TsgcPDFDocument.Create のあと AddPage (新しいドキュメントには、追加するまでページがありません) |
NewPage, SetPageDimensions, SetPageSize | TsgcPDFDocument.AddPage(AWidth, AHeight): TsgcPDFPage, InsertPage(AIndex, AWidth, AHeight) |
LoadFromFile, LoadFromString | TsgcPDFDocument.LoadFromFile, LoadFromStream, LoadFromBytes |
パスワード付きの LoadFromFile | LoadFromFile の前に TsgcPDFDocument.SetPassword(APassword) |
SaveToFile, SaveToString | TsgcPDFDocument.SaveToFile, SaveToStream, SaveIncremental |
PageCount | TsgcPDFDocument.PageCount。ファイルだけの場合は sgcPDFGetPageCount(AFileName) |
SelectPage | TsgcPDFDocument.Pages[AIndex] (0 始まり、既定プロパティ)、GetPage(AIndex) |
SetInformation | TsgcPDFDocument.Info.Title, .Author, .Subject, .Keywords, .Creator, .Producer |
AddStandardFont + SelectFont + SetTextSize + DrawText | TsgcPDFPage.DrawText(AText, X, Y, AFont, AFontSize) と TsgcPDFStandardFont (sfHelvetica、sfTimesRoman、sfCourier とそれぞれの太字と斜体) |
SetTextColor + DrawText | TsgcPDFPage.DrawTextColor(AText, X, Y, AFont, AFontSize, R, G, B) (成分は 0 から 1) |
AddTrueTypeFont + DrawText | TsgcPDFDocument.AddTrueTypeFont(AFontName, ABold, AItalic): Integer (または AddTrueTypeFontFromFile)、続いて TsgcPDFPage.DrawTextTT |
DrawLine, DrawBox | TsgcPDFPage.DrawLine(X1, Y1, X2, Y2, ALineWidth), DrawRectangle(X, Y, W, H, ALineWidth), DrawRectangleFill |
AddImageFromFile + SelectImage + DrawImage | TsgcPDFDocument.AddImage(AFileName): Integer + TsgcPDFPage.DrawImageFromIndex(AIndex, X, Y, W, H)、または DrawImageFile(AFileName, X, Y, W, H) |
GetPageText | TsgcPDFDocument.ExtractTextW(APageIndex), ExtractText, FindText; TsgcPDFEditor.ExtractAllText, SearchText |
AddToFileList + MergeFileList | sgcPDFMergeFiles([...], AOutputFile) |
MergeDocument | TsgcPDFDocument.AppendDocument(ADoc), TsgcPDFEditor.MergeFrom(AFileName) |
ExtractPageRanges, ExtractFilePages | sgcPDFExtractPages(AInputFile, AOutputFile, ARange) ('1,3,5-9' のような 1 始まりの範囲文字列)、TsgcPDFEditor.ExtractPages(ARange, AOutputFileName) |
DeletePages | TsgcPDFDocument.DeletePages(ARange), DeletePage(AIndex) |
RotatePage | TsgcPDFEditor.RotatePage(AIndex, ADegrees) |
SetTransparency + DrawText (透かし) | TsgcPDFEditor.AddWatermarkAllPages(TsgcPDFWatermarkOptions), AddWatermark, AddTransparentText |
全ページへの DrawText (スタンプ、ヘッダー、フッター) | TsgcPDFEditor.AddTextColor, AddHeaderText, AddFooterText, AddPageNumbers |
RenderPageToDC | TsgcPDFRendererGDI.RenderPage(ADC, ADocument.Parser, APage.PageDict, AWidth, AHeight)。VCL ビューアでは TsgcPDFViewerControl.RenderPageToBitmap |
RenderPageToFile | TsgcPDFExporter.ExportPage(ADocument, APageIndex, AFileName) (BMP, PNG, JPEG), sgcPDFPageToImage(APDFFile, AImageFile, APageIndex, ADPI) |
FormFieldCount, FindFormFieldByTitle | TsgcPDFDocument.AcroForm.FieldCount, AcroForm.FindField(AName) |
SetFormFieldValue, SetFormFieldValueByTitle | AcroForm.FillField(AName, AValue), AcroForm.SetCheckBox(AName, AChecked), TsgcPDFEditor.FillFormField |
GetFormFieldValue | AcroForm.GetFieldValue(AName) |
NewFormField | AcroForm.AddTextField, AddCheckBox, AddComboBox, AddListBox, AddRadioGroup + AddRadioButton, AddButton, AddSignatureField |
FlattenFormField | AcroForm.FlattenFields, TsgcPDFEditor.FlattenForm |
Encrypt | TsgcPDFDocument.SetEncryption(AMethod, AUserPassword, AOwnerPassword) と emAES_256、emAES_128、emRC4_128、emRC4_40 のいずれか |
CapturePage | TsgcPDFDocument.AddPageAsForm(ASource, APageIndex): Integer (ページボックス、矩形、注釈を指定するオーバーロードあり) |
DrawCapturedPage | TsgcPDFPage.DrawForm(AFormIndex, X, Y, AScaleX, AScaleY, ARotation), DrawFormInRect(AFormIndex, ATarget, AKeepAspect, ARotation), DrawFormMatrix |
GetPageBox | TsgcPDFPage.GetPageBox(ABox) (ppbTrimBox, ppbBleedBox, ...), TsgcPDFDocument.GetFormBBox |
NewOutline | TsgcPDFEditor.AddBookmark(ATitle, APageIndex), AddBookmarkChild |
AddLinkToPage | TsgcPDFEditor.AddLinkAnnotation(APageIndex, ALeft, ABottom, ARight, ATop, ADestPage) |
AddNoteAnnotation | TsgcPDFEditor.AddTextAnnotation(APageIndex, ALeft, ABottom, ARight, ATop, AText) |
SignFile | TsgcPDFEditor.SignDocument(AOutputFile, ACertSubjectName, AReason, ALocation) |
PrintDocument | VCL ビューアの TsgcPDFViewerControl.Print(AFromPage, AToPage, ATitle) はダイアログなしで印刷し、PrintDialog(ATitle) はプリンターダイアログ (ページ範囲、部数) を表示して印刷します。FireMonkey ビューア TsgcPDFViewerFMX にも、Windows と macOS で同じ 2 つのメソッドがあります。 |
SetMeasurementUnits(0), SetOrigin(0) | 既定で唯一の座標系: ポイント単位、原点は左下。ヘルパーは sgcPDFMMToPoints、sgcPDFRectMM |