0
4

SalesforceでのPDF関連のまとめ

Last updated at Posted at 2022-05-17

まとめページに戻る
まとめN~Z

具体的な作成例

The (undocumented) trick is that you need to have Remote Site Setting records setup for the domains where the external URLs are hosted.

Is it possible to use images in Visualforce generated PDFs which are not static resources?

First image is displaying because it's came from "Content Delivery Network" . Sometimes Salesforce doesn't allowed external Link form Server.

文字のフォントの制限

設定の問題ではなく、Arial Unicode MS 自体がそういうフォントなのでどうしようもないと思います。

下添付画像は Arial Unicode MS で「あいうえおぁぃぅぇぉアイウエオァィゥェォアイウエオァィゥェォ」と出力したものです。

image.png

印刷機能が表示されない

image.png

何でかなぁってApexを眺めていましたが、単にボタンで表示している高さが低かったようです。
600ピクセルにすると表示されました。

image.png

サイズの問題

Alternatively, you can use an App from the AppExchange such as the one we provide ( SharinPix ) in order to manage images, deilver them as resized version as URL which could be used in PDF generation.Then you will avoid very easily the problem, as large pictures will be decreased in weight.A document can then have more than 100 images included without reaching the 30 MB limit.Anyway, a 30MB+ PDF file will be really hard to handle, send by email, store, ....That's why i will be surprise that this limit will be changed any soon.

https://ideas.salesforce.com/s/idea/a0B8W00000GdkM0UAJ/increase-the-30-mb-limit-of-image-size-in-pdf-generation

https://salesforce.stackexchange.com/questions/150227/help-needed-render-as-pdf-size-exceeding-30-mb

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4