|
|
谈吐大方的铁链 · android unable to ...· 1 年前 · |
|
|
干练的罐头 · Linux多用户共享Anaconda的安装和 ...· 2 年前 · |
|
|
任性的火车 · 无影响:**NOTICE** Dtrace ...· 2 年前 · |
|
|
买醉的硬币 · Java ProxySelector未定义的行为· 2 年前 · |
|
|
谈吐大方的铁链 · android unable to determine application id: com.android.tools.idea.run.apkpr - CSDN文库 1 年前 |
|
|
任性的火车 · 无影响:**NOTICE** Dtrace support disabled: /usr/include/sys/sdt.h not found_quantum6的技术博客_51CTO博客 2 年前 |
|
|
买醉的硬币 · Java ProxySelector未定义的行为 2 年前 |
Adam,
I haven't worked with A4 paper size, but the renderAs=pdf functionality does honor at least this type of @page directive in CSS (we use it to get page numbering and landscape printing in PDF's):
Yes - that does indeed work perfectly - thanks for taking the time to post
I also managed to sort out my other issue with VisualForce PDF and Fonts being stuck on Times Roman, you must use "Arial Unicode MS" in your CSS definition - I cannot yet get this to go bold in VF but its a 100 times nicer than Time Roman
Adam
I have a question about @page. Should this be defined in your style section like this:
Here is the official w3 @page doc.
Generally instead of inline CSS for PDF rendering, I use the stylesheet tag:
One last question. I'm still learning all this css stuff. When I create my .css file do I need to have the style tags in it:
There are tons of good CSS intros out there that describe all the details you will need to know. Here is an example of a good one.
Jeremy Kraybill
Austin TX
Hi Jeremy,
You seem to have some good knowledge on this, so I hope you don't mind an additional question -
Have you had any luck flowing any sort of styled content a la divs or something into those @page headers/footers? We have only been able to get plain text to work. It would be fantastic if we could put some HTML in there for more 'robust' headers and footers.
thanks
Not really my area of expertise, I've only used straight plain text. I believe according to the spec, you should be able to use at least text styling directives on the header so you should be able to do better than actual "plain text" but haven't used it. I haven't seen any examples of using the "content:" attribute to populate anything other than text.
Jeremy Kraybill
Austin, TX
This works for me in @page: