CFDocument, pdf and justify, oh my!


i can't justified text in pdf. read around internet known problem in version 7 releases, supposed fixed in version 8. here example of code:

<cfdocument format="pdf" filename="c:\testpdf.pdf" overwrite="yes">

<div align="justify">text of paragraph 1.</div>

<p align="justify">text of paragraph 2.</p>

<p style="text-align:justify">text of paragraph 3.</p>

<p style="text-align: justify"> text of paragraph 4.</p>

<table><tr align="justify"> <td align="justify">text of paragraph 5</td></tr></table>

<table> <tr align="justify"><td>text of paragraph 6.</td></tr></table>

<table> <tr> <td align="justify">text of paragraph 7.</td></tr></table>

</cfdocument>

all paragraphs in pdf left aligned. if changed "justify" other option, right, left or centered, paragraphs correspond. below full version of code can see in fact using enough text "justified". need make happen?

<cfdocument format="pdf" filename="c:\testpdf.pdf" overwrite="yes">
<div align="justify">1. first paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. first paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. first paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. first paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</div>

<p align="justify">2. second paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 2. second paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 2. second paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 2. second paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</p>

<p style="text-align:justify">3. third paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 3. third paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 3. third paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 3. third paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</p>

<p style="text-align: justify"> 4. forth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 4. forth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 4. forth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 4. forth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</p>

<table><tr align="justify"> <td align="justify">5. fifth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 5. fifth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 5. fifth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 5. fifth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</td></tr></table>

<table> <tr align="justify"><td>6. sixth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 6. sixth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 6. sixth paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</td></tr></table>

<table> <tr> <td align="justify">7. seventh paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 7. seventh paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines. 7. seventh paragraph. amount of text equal paragraph. testing purposes only. need enough text fill 4 or 5 lines.</td></tr></table>

</cfdocument>

here random webpage named "bug 60590 - fixed in cf8"
http://list.cfdeveloper.co.uk/pipermail/dev/msg04010.html
(please note, using cf version 8,0,1,195765)


More discussions in Advanced Techniques


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62