PDFium Component Docs

PrintScaling 속성

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
컴포넌트: TPdf  ·  유닛: PDFium
문서의 /ViewerPreferences /PrintScaling hint를 디코딩한 값입니다. PDF 작성자가 viewer의 print dialog 기본값을 application-defined fit-to-page scaling으로 둘지, 아니면 page를 작성된 크기로 인쇄할지 알려 줍니다

구문

property PrintScaling: Boolean; // read only

설명

/ViewerPreferences/PrintScaling 항목은 PDF 32000-1 § 12.2 Table 150에 따라 두 개의 named value 중 하나를 받습니다

PDF print pipeline을 연결할 때 이 property를 사용하면 사용자가 document가 무엇을 기대하는지 다시 추측할 필요가 없습니다. Form, 고정 형식 invoice, bar code가 있는 label, pre-press proof는 보통 /None을 설정하고, brochure와 bound document는 종종 기본값을 그대로 두어 어떤 paper size에도 맞게 합니다

이것은 단지 hint일 뿐입니다. PDFium은 rasterisation 동안 이를 강제하지 않습니다. 실제로 rendered bitmap이나 PostScript stream을 scaling하거나 scaling하지 않는 것은 VCL Printer, GDI StartDoc 또는 다른 printing layer입니다. print dialog를 채울 때는 PrintPaperHandling, PrintCopies, PrintPageRanges와 함께 사용합니다

비고

예제

// 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;

참고 항목

PrintCopies, PrintPageRanges, PrintPaperHandling, ViewerPreference