Når du skal skrive dine PDF tekster. Så har du mange muligheder for at redigere den tekst der vises på PDF’en. Listen af muligheder er her. Og vi gennemgår dem længere nede.
De mest gængse ændringer til teksten er disse.
<font [face, color, size]>, <b>, <i>, <u>, <link [href, color, fontName, fontSize, backColor>, <strong>, <strike [width, offset, color, gap, kind]>, <br/>, <nobr>,
Bullets
<bullet>
Dette tag giver mulighed for at lave en bullet liste. Kan dog kun bruges én gang pr. PDF Tekst.
alignment, allowOrphans, allowWidows, backColor, borderColor, borderPadding, borderRadius, borderWidth, bulletAnchor, bulletFontName, bulletFontSize, bulletIndent, embeddedHyphenation, endDots, firstLineIndent, fontName, fontSize, hyphenationLang, justifyBreaks, justifyLastLine, leading, leftIndent, linkUnderline, rightIndent, spaceAfter, spaceBefore, spaceShrinkage, splitLongWords, strikeGap, strikeOffset, strikeWidth, textColor, textTransform, underlineGap, underlineOffset, underlineWidth, uriWasteReduce, wordWrap = None
Sekvenser
<seq [id]>, <seqreset>, <seqdefault>,
Afsnit
<para>
Dette tag kan lave om på rigtig mange ting.
alignment, allowOrphans, allowWidows, autoLeading, backColor, borderColor, borderRadius, borderWidth, borderpadding, bulletAnchor, bulletColor, bulletFontName, bulletFontSize, bulletIndent, bulletOffsetY, embeddedHyphenation, endDots, firstLineIndent, fontName, fontSize, hyphenationLang, hyphenationMinWordLength, hyphenationOverflow, justifyBreaks, justifyLastLine, leading, leftIndent, rightIndent, spaceAfter, spaceBefore, spaceShrinkage, splitLongWords, strikeColor, strikeGap, strikeOffset, strikeWidth, textColor, textTransform, underlineColor, underlineGap, underlineOffset, underlineWidth, uriWasteReduce, wordWrap
# < /b > - bold # < /i > - italics # < u [color="red"] [width="pts"] [offset="pts"]> < /u > - underline # width and offset can be empty meaning use existing canvas line width # or with an f/F suffix regarded as a fraction of the font size # < strike > < /strike > - strike through has the same parameters as underline # < super [size="pts"] [rise="pts"]> < /super > - superscript # < sup ="pts"] [rise="pts"]> < /sup > - superscript # < sub ="pts"] [rise="pts"]> < /sub > - subscript # <font name=fontfamily/fontname color=colorname size=float> # <span name=fontfamily/fontname color=colorname backcolor=colorname size=float style=stylename> # < bullet > </bullet> - bullet text (at head of para only) # <onDraw name=callable label="a label"/> # <index [name="callablecanvasattribute"] label="a label"/> # <link>link text</link> # attributes of links # size/fontSize/uwidth/uoffset=num # name/face/fontName=name # fg/textColor/color/ucolor=color # backcolor/backColor/bgcolor=color # dest/destination/target/href/link=target # underline=bool turn on underline # <a>anchor text</a> # attributes of anchors # fontSize=num # fontName=name # fg/textColor/color=color # backcolor/backColor/bgcolor=color # href=href # <a name="anchorpoint"/> # <unichar name="unicode character name"/> # <unichar value="unicode code point"/> # <img src="path" width="1in" height="1in" valign="bottom"/> # width="w%" --> fontSize*w/100 idea from Roberto Alsina # height="h%" --> linewidth*h/100 <ralsina@netmanagers.com.ar> # <greek> - </greek> # <nobr> ... </nobr> turn off word breaking and hyphenation # # The whole may be surrounded by <para> </para> tags # # It will also be able to handle any MathML specified Greek characters.
Der er også reference der kan bruges, til at hente værdier ud generisk:
[[ORG_NAME]]: [[ORG_IDENTIFICATION_NUMBER]]: [[ORG_STREET]]: [[ORG_POSTAL_CODE]]: [[ORG_CITY]]: [[ORG_COUNTRY]]: [[ORG_MAIL]]: [[ORG_PHONE]]: [[ORG_LINE_TEXT]]: [[ORG_WEBSITE]]: [[ORG_BANK_NAME]]: [[ORG_REG_NO]]: [[ORG_ACCOUNT_NO]]: [[SALE_NUMBER]]: [[SALE_NUMBER_DRAFT]]: [[SALE_FI]]: [[SALE_BOOKED_NUMBER]]: [[SALE_NAME]]: [[SALE_TYPE_NAME]]: "Quote"/"Tilbud"/"Order"/"Ordre"/"Invoice"/"Faktura" [[SALE_DATE]]: Salgsdato [[SALE_DELIVERY_DATE]]: Leveringsdato [[SALE_DELIVERY_TEXT]]: Leveringstekst [[SALE_LINES_INCL_VAT]]: Boolean. TRUE hvis salg er inkl. moms [[SALE_REF]]: [[SALE_CURRENCY]]: [[SALE_TOTAL_AMT]]: [[SALE_TOTAL_AMT_EX_VAT]]: [[SALE_TOTAL_DISCOUNT_AMT]]: [[SALE_TOTAL_VAT_AMT]]: [[SALE_TEXT1]]: [[SALE_TEXT2]]: [[SALE_OTHER_REF]]: [[PAYMENT_TERM_NAME]]: [[PAYMENT_DUE_DATE]]: [[COMPANY_NAME]]: [[COMPANY_NUMBER]]: [[COMPANY_IDENTIFICATION_NUMBER]]: [[COMPANY_EAN]]: [[COMPANY_STREET]]: [[COMPANY_CO]]: [[COMPANY_POSTAL_CODE]]: [[COMPANY_CITY]]: [[COMPANY_COUNTRY]]: [[OUR_REF_NAME]]: [[OUR_REF_MAIL]]: [[OUR_REF_PHONE]]: [[OUR_REF_TITLE]]: [[YOUR_REF_NAME]]: [[YOUR_REF_MAIL]]: [[YOUR_REF_PHONE]]: [[YOUR_REF_TITLE]]: [[DATE_CREATED]]: [[DATE_UPDATED]]: [[PRODUCT_IMAGE]]: Hvis der er billede på produktet, så sæt denne på produkttekster i PDF [[GF_<name>]]:
Sådan bruger du referencer som kun vises hvis de udfyldte (f.eks. ved leveringsadresse som her):
[[IF SALE_DELIVERY_STREET]] vi levere til [[SALE_DELIVERY_STREET]] [[SALE_DELIVERY_POSTAL_CODE]] [[SALE_DELIVERY_CITY]] [[SALE_DELIVERY_COUNTRY]] [[ENDIF SALE_DELIVERY_STREET]]
[[ELSE SALE_DELIVERY_STREET]] kan også anvendes i ovenstående
Valg af billede på forsiden alt efter kunde. Derfor har vi nu grupper på kunder. Samt vi kan også tjekke hvad gruppen er i PDF tekster.
[[IF COMPANY_GROUP==Gruppe1]]
Billede 1
[[ENDIF COMPANY_GROUP]]
[[IF COMPANY_GROUP==Gruppe2]]
Billede 2
[[ENDIF COMPANY_GROUP]]
[[IF COMPANY_GROUP==Gruppe3]]
Billede 3
[[ENDIF COMPANY_GROUP]]
eller ud fra kategori:
[[IF SALE_CATEGORY==Facaderensning]]
</para><para autoLeading="max"><img src="/var/www/teratio/media/org_storage/145/files/2021/12/Facaderensning.JPG" height="248" width="472" valign="top"/>
[[ENDIF SALE_CATEGORY]]
Den kan også større og mindre dvs.
[[IF SALE_TOTAL>=200]]
SEJT
[[ENDIF SALE_TOTAL]]
[[IF SALE_TOTAL<200]]
Næste gang bliver bedre
[[ENDIF SALE_TOTAL]]