PDFium Component Docs

SaveAsPdfVTToStream 메서드

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
컴포넌트: TPdf  ·  유닛: PDFium
In-memory variant of SaveAsPdfVT — writes PDF/VT output into any TStream without staging through disk.

구문

function SaveAsPdfVTToStream(Stream: TStream; const Options: TPdfVTSaveOptions): Boolean;

설명

SaveAsPdfVTToStreamSaveAsPdfVT — 동일한 출력 바이트(PDF/X-4 마커와 PDF/VT 식별 포함)를 호출자가 제공한 임의의 seekable TStream에 씁니다. 렌더링된 각 작업을 디지털 프레스나 billing / transactional document archive로 디스크를 거치지 않고 보내는 variable-data print pipeline에 유용합니다

The post-processing is identical to SaveAsPdfVT: marker injection (XMP stream + ICC stream + OutputIntent dict + rewritten Info dict + rewritten Catalog dict), a minimal DPart hierarchy when needed, and a trailer with /ID Options fields left empty are auto-populated from FPDF_GetMetaText / FPDF_GetFileIdentifier.

Returns True on success.

비고

예제

var
  Stream: TMemoryStream;
  Opts: TPdfVTSaveOptions;
begin
  Stream := TMemoryStream.Create;
  try
    Opts := TPdfVTSaveOptions.Default;
    Opts.Producer := 'PDFiumPas VT pipeline';
    if Pdf1.SaveAsPdfVTToStream(Stream, Opts) then
    begin
      Stream.Position := 0;
      PushToPress(Stream);
    end;
  finally
    Stream.Free;
  end;
end;

참고 항목

SaveAsPdfVT, ValidatePdfVT, PdfVTConformance, SaveAs