Cfdocument: How to design a PDF excactly the way I want?

Hello everybody
I’m trying to produce PDF files with cfdocument for a
Clinique here in Switzerland. I’m using the developer version
of CF8. A big issue is that I am supposed to make the PDF look like
it would have been printed on a prefabed letter, means that the
header and the footer both containing images on the right position
in the right dimensions. Furthermore the margins for the content
should have defined values:
Top: 5,5 cm
Left: 3,7 cm
Right: 2,8 cm
Bottom: 3,0 cm
I wasn’t able so far to create this because I
don’t have any control of the layout of the headers and
footer, means no control about sizing the images or sizing the
header/footersections or placing the images precisely in these
sections!
I don’t know whether my basic idea using header and
footers is right, may be there is a way to print text in a existing
blank PDF which already contains what I described as header and
footer? Would be great!
I put all elements I’m using on the following link
http://augenklinik.be/cfdocument.zip.
It contains:
default.cfm: contains the code
IS.pdf: what cfdocument generates for the moment (it's far to
big in filesize!!)
SHOULD_BE.pdf: what I would like cfdocument to produce!
BE_HEADER.png: header image (much bigger but shows perfect in
PDF after scaling down)
BE_FOOTER.png: header image (much bigger but shows perfect in
PDF after scaling down)
The best would be if anybody could write me a sample code for
the above described problem – would be great!
Thank you very much for your help

Hi Sanjeev,
I have currently the same issue, please have you solved it?
Thank you
Tomas

Similar Messages

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • How to create a pdf for the URL attached to an invoice and send it as an attachment in a mail

    HI,
    I have requirement where i need to get the URL attached to an invoice, create the pdf and send as an attachement in a mail.
    The URL attached to an invoice can be seen by following the path : VF03-> Billing document->system->Services for object ->Attachement list.
    On searching through existing forums, i found that there is a table 'SRGBTBREL' which stores relationships of GOS object. On giving the invoice number in field 'INSTID_A', i could find an entry in this table.
    To get the content, i used the class CL_FITV_GOS, method GET_CONTENT. To this method i passed following values:
    IV_ATTA_ID = FOL21000000000521URL39000000000012 (The value if field INSTID_B from table SRGBTBREL)
    IV_OBJTP   = 'URL'
    On execution, i get URL link but the content table is empty.
    Could anybody provide some input on how i get the content? Or may be how i can create pdf from the URL link and attach it to mail as an attachment?
    Thanks,

    Hi Amit,
    Solution provided by you is working when the link length is one line but it is not working for more than one line
    Eg: say link is https://......80 [80 characters long]
    I will give    <a href="https://...72            [in first line]
                     73..80">click here</a>         [in second line]
    I will get the output as 73...80">click here
    But i want only CLICK HERE in my output..
    Please suggest solution.
    Thanks,
    Kavya

  • How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    Thank you for your reply, William.
    Well, we just want the PDF to open when we click on the “Help” link of the Application.
    Also, we have the PDF ready. 
    Is it a job of a UI Developer? Do we need to tell him to link this PDF to the Help button or link of the Application?

  • I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i c

    I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i can't because i don't have the earbuds and i have serches or them. now i am suck with a phone i don't like at all until my next upgrade. this is very dishearten

    1. If you are this unhappy with that phone, and the lost earbuds is the only thing stopping you from taking it back, why do not just buy some earbuds. That way you can get rid of that phone. It all depend upon how much you want to get rid of that phone.
    2. Yet if you are stuck with that iPhone, here is something might help you to control the data usage. By design, iPhones do turn off WiFi when they go dormant. So if a download is in progress and so forth when the phone goes dormant, it will switch to use cellular data, if this setting is left on. Therefore, from multi-sources I have learned that if you keep your iPhone connected to a power source, then it will stay connected to the available WiFi.

  • I have been using itunes all day and then it wanted me to install a newer version.  When I did it said I can't because it's missing mdsvr80 or something so i downloaded that now it has another error.  How do I get itunes back the way it was or to work?

    I have been using itunes all day and then it wanted me to install a newer version.  When I did it said I can't because it's missing mdsvr80 or something so i downloaded that now it has another error.  How do I get itunes back the way it was or to work?

    See this User Tip by turingtest2
    https://discussions.apple.com/docs/DOC-6562

  • I accidentally combined all of my photos on iphoto to be one event. i have it the way i want it saved on my external harddrive from time machine. how do i make my computer go back to that

    i accidentally combined all of my photos on iphoto to be one event. i have it the way i want it saved on my external harddrive from time machine. how do i make my computer go back to that

    Open Time Machine to the date that you know the iPhoto Library is in the format you want and select and Restore it.
    http://pondini.org/TM/15.html
    Ciao.

  • How to arrange songs on ipod shuffle the way I want them to be played

    I just got an Ipod shuffle in India.....2 GB....I want the songs to be played in a particular order only the way I can do on MP3 players....How do I arrange songs the way I want them to be played serially?

    If you have iOS 5 on the iPad then you can create new albums directly on the iPad - you should get an Edit button at the top of the Albums screen in the Photos app. That will allow you create and 'copy' photos into those new albums (you can't copy photos into synced albums), but you can't delete the original photo - if you do delete it then all copies of it that you've put in other albums will also be deleted. I don't think that the total number of photos increases on the iPad when you copy photos into new albums, so I think that you effectively just creating pointers to them in those new albums, so if you delete the original photos on the iPad then all pointers to it will also be deleted.

  • I do not want to update to Lollipop right now.  How can I get rid of the notification that wants me to install.  It says 'Install Later' or Install Now. I don't want to do either so how can I get rid of this notification that keeps popping up?

    I do not want to update to Lollipop right now.  How can I get rid of the notification that wants me to install.  It says 'Install Later' or Install Now. I don't want to do either so how can I get rid of this notification that keeps popping up?

    You cannot stop it from popping up.
    it will continue every few minutes until its installed.
    just keep using the back button near right side of home button.

  • Facebook is not loading properly and all my text and images are lined up along the right side of the page. How can this get fixed to the way it use to be?

    Facebook is not loading properly and all my text and images are lined up along the right side of the page. How can this get fixed to the way it use to look?
    Everyone who logs into Facebook on my Firefox has this problem however if we use Internet Explorer - facebook looks normal.

    If you have increased the minimum font size then try the default setting "none" as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"

  • In an effort to try to do a slide show through my apple TV and my computer I have lost all of my work in iPhono for the past 5 years. I upgraded and lost my albums and books. How do I get everything back the way it was?

    In an effort to try and show a slide show through my apple tv I upgraded my iPhoto app now I have lost all of my books albums and photo's over the last 5 years. How can I get it back the way it was 2 hours ago?

    to know your version of OS, click on the apple, then  " About This Mac".
    Same thing for your version of iPhoto: in iPhoto, click on "iPhoto" then "About iPhoto".

  • I want my songs to be in a specific order but they transfered to the ipod in a different order. it looks as if they are in alphabetical order by artist. how can I get them in the order I want?

    I want my songs to be in a specific order but they transfered to the ipod in alphabetical order by artist. how can  I get them in the order I want?

    Hey ellenkk
    The best way to get the songs in the order that you want is to make a playlist and then sync it over. Once the playlist is set, all you have to do is set to sync playlist in the music tab.
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • When i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    when i burn a playlist, why does it automatically alphabetize my list? how do i kburn it in the order i want?

    What format disc? MP3? Audio?
    iTunes 10 for Mac: Create your own MP3 CDs - http://support.apple.com/kb/PH1748
    iTunes 10 for Mac: Disc burning overview - http://support.apple.com/kb/PH1746
    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

  • Ever since I downloaded the new iOS 7 my screen will not turn up and down and it rotates on its own side to side.it will not face the way I want it to go. How do I fix it?

    Ever since I downloaded the new iOS 7 my screen will not turn up and down and it rotates on its own side to side.it will not face the way I want it to go. How do I fix it?

    I've been working on this all day!!! I've tried everything I know of and can't get it to load either. Sounds like lots of people are having problems. Here is what I have so far...I have uninstalled EVERYTHING on my pc from apple and reinstalled itunes to no avail. I have tried all sorts of things I've read as fixes online. NOTHING has worked. Here is something interesting that i have noticed though. my main pc (which is the one i have always managed my itunes account with for years) is a 32 bit system running windows 7. Yesterday I installed itunes for the first time on my new netbook which is a 64 bit (windows 7) system and it works just fine. i have three other laptops (all window 7) in my household that are all 64 bit operating systems and ALL have updated to 10.5 and THEY ALL work fine. this is FOUR 64 bit systems ALL updated w/10.5 that work and ONE that is a 32 bit that will not. Can't get any help from apple. their suppot *****! I want to get someone on the **** phone or a live chat but cant. *** APPLE????? please let mw know if you find SOMETHING i can try next. I'm out of ideas and patience!

  • Hi, i would like my membership cancelled. I got it yesterday but its not working the way i wanted it to work. How do i go about that i getting my refund as its before 30 days.

    Hi, i would like my membership cancelled. I got it yesterday but its not working the way i wanted it to work. How do i go about that i getting my refund as its before 30 days.

    Hi kondwastefstef,
    I'm sorry that your subscription didn't meet your needs. Please contact Adobe Customer Support via phone or chat; they should be able to cancel your account and process your refund. Here's the contact information: Contact Customer Care
    Best,
    Sara

Maybe you are looking for

  • Create Link to attached PDF file

    Hi guys I am having a nightmare! I have been provided with a Word document which contains links to embedded PDF documents.  It all works lovely, you click on the link in the word document and up pings the embedded PDF in a new window. My issue is tha

  • What exception should I use when commit work fails ?

    hi all:     I create a class with methods to insert , modify and delete trasaction data,  when commit work fails, I want to throw an exception, what exception should I use for this case?

  • Build distribution error - WINNT.H

    When I go to build a distribution for my project I get an error for WINNT.H. It says:     cviincludes.h - 20 errors                   "WINNT.H"[523,10) syntax error; found 'indentifier' expecting ','. In the WINNT.h it highlights a line    __inline U

  • Install Acrobat/Reader plugin on Mac

    Has anyone installed an own Acrobat/Reader plug_in on Mac?  Is there a standard way to do this? Up to Mac 10.4 there was a "Plug-ins" section in the information dialog of Acrobat/Reader, which was good to install/deinstall plug_ins. I don't find this

  • [JS, ID5] Change fontStyle

    Hello, I have the following script for changing character overrides (bold) for character styles: app.findTextPreferences = null; app.changeTextPreferences = null; app.findTextPreferences.fontStyle = "Bold"; app.changeTextPreferences.appliedCharacterS