PDFium Delphi Component Docs

PrintScaling 속성

컴포넌트: TPdf  ·  유닛: PDFium
문서의 /ViewerPreferences /PrintScaling hint를 디코딩한 값입니다. PDF 작성자가 viewer의 print dialog 기본값을 application-defined fit-to-page scaling으로 둘지, 아니면 page를 작성된 크기로 인쇄할지 알려 줍니다

Syntax

property PrintScaling: Boolean; // read only

Description

/ViewerPreferences의 /PrintScaling 항목은 PDF 32000-1 § 12.2 Table 150에 따라 두 이름 값 중 하나를 갖습니다

PDF 인쇄 파이프라인을 구성할 때 이 프로퍼티를 쓰면 사용자가 문서가 기대하는 바를 추측하지 않아도 됩니다. 폼, 고정 형식 청구서, 바코드 라벨, 인쇄 교정쇄는 보통 /None으로 설정해 바코드 / 치수가 정확한 크기로 나오게 하고, 브로슈어와 제본 문서는 보통 기본값으로 두어 어떤 용지 크기에도 맞습니다

이것은 어디까지나 힌트입니다 — PDFium은 래스터화 중에 강제하지 않습니다. 렌더링된 비트맵이나 PostScript 스트림을 실제로 스케일하거나(또는 스케일을 거부하는) 것은 인쇄 레이어(VCL Printer, GDI StartDoc 등)입니다 인쇄 대화상자를 채울 때는 PrintPaperHandling, PrintCopies, PrintPageRanges와 짝지으세요

Remarks

Example

// Apply the document's preferred scaling mode to the printer setup.
begin
  if Pdf1.PrintScaling then
  begin
    radioFit.Checked := True;
    Memo1.Lines.Add('PDF prefers app-default (fit to page) scaling');
  end
  else
  begin
    radioActualSize.Checked := True;
    Memo1.Lines.Add('PDF requests actual-size print (no scaling)');
  end;
end;

See Also

PrintCopies, PrintPageRanges, PrintPaperHandling, ViewerPreference