Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就我而言,我必须在 pdf 上将图像显示为原始高度和宽度。原始意味着图像的高度和宽度相同。
我用过,
<fo:external-graphic src="url({$optionImageSrc})" scaling="uniform" content-height="scale-to-fit">
但它不起作用。
什么不起作用,究竟是什么?
尝试使用content-height='100%' content-width='100%'. 如果使用scale-to-fit,图像将被缩放以适应周围的块。
content-height='100%' content-width='100%'
scale-to-fit