Hyphenation & text-align:justify in PDF's with CFDOCUMENT

Hello everybody!
We are using CF8.1 and are having problems of generating well designed PDF outputs with CFDOCUMENT. We would like to print out reports, which are hyphenated and have the text aligned. Example:
This works fine:
<html lang="en">
<STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;  -hyphens: auto;text-align:justify}</STYLE>
<P>Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer</P>
</html>
This won't:
<CFDOCUMENT FORMAT="PDF">
<html lang="en">
      <STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;  -hyphens: auto;text-align:justify}</STYLE>
      <P>Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer</P>
</html>
</CFDOCUMENT>
Do you have any solutions on this topics? Are do I have to wait until CF11.
Thanks in advance
Matthias

4tun8mom wrote:
Now, the problem is that, while the client likes this, they don't like that the headers and footers are grayed out and the colors are not as vibrant in Word as the program part I created and saved as a PDF.
They're being a bit impractical in their complaints, in fact they remind me of my Dad!  The final product is still fine.
4tun8mom wrote:
They also don't like that if we keep this as a Word document, all the text is editable.
That's fair enough, the solution would be to make the text in the header and footer an image instead.
4tun8mom wrote:
So my question is, can I create a PDF that has the same features with the expandable text control boxes.  If I can, would you recommend InDesign to do this?
No you can't.  I'm pretty sure you can't create a PDF with expandable boxes and I'm very sure that you can't create a PDF that will add pages with headers and footrs.  However you can create a PDF with basic fillable text boxes, they're called forms and you need Acrobat as well to do it, google it and you'll find plenty of info.

Similar Messages

  • Text alignment "Justify" is not aligned in Crystal Viewer.

    Hi,
    I am having a text field in report like paragraph format in Detail section and I have setting the text alignment as u201CJustifyu201D. If I launch the report through dhtml viewer the text is not aligned in justify format, it is getting aligned as left alignment, but it is working properly while exporting to PDF and Design Preview panel.
    This problem is occurs in Crystal Report XI Release 2 and Crystal Report 2008 also.
    This has been already posted and the link is Text Alignment - Justification Problem
    Please help me to overcome this issue.
    Thanks in Advance.

    With CR 2008, make sure you are on SP4:
    SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    SP4 MSI
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    SP4 MSM
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    If that does not help, please provide a link to screen shots of the issue.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to position text in an existing PDF document with X,Y coordinates

    There used to be a CFX PDF tag that could do this.  the company (www.easel2.com) does not appear to exist any more.
    This is what i want to do.  I have an existing PDF file that is uploaded by a user.  I want to receive the file, then put a registration number (some text) in the lower left corner of the 2nd page (I don't know the exact x,y coordinate but I can figure that out later).
    Does anyone know how I can do this?

    Unfortunately, I can not create the PDF.  It is uploaded by the user, and I have to open the PDF, insert the text and save it.  BUT, I did find the solution in a slight roundabout way.
    1) Create an image file containing the text I need
    2) Use that image file as a watermark with 10 opacity and use the tag's x,y coordinate setting.
    Below is the code I found to work:
    <!--- Create a blank image that is 500 pixels square. --->
    <cfset myImage=ImageNew("",500,500)>
    <!--- Set the background color for the image to white. --->
    <cfset ImageSetBackgroundColor(myImage,"white")>
    <!---Clear the rectangle specified on myImage and apply the background color. --->
    <cfset ImageClearRect(myImage,0,0,500,500)>
    <!--- Turn on antialiasing. --->
    <cfset ImageSetAntialiasing(myImage)>
    <!--- Draw the text. ---> 
    <cfset attr=StructNew()>
    <cfset attr.size=50>
    <cfset attr.style="bold">
    <cfset attr.font="Verdana">
    <cfset ImageSetDrawingColor(myImage,"blue")>
    <cfset ImageDrawText(myImage,"PROOF",100,250,attr)>
    <!--- Write the text image to a file. --->
    <cfimage action="write" source="#myImage#" destination="text.tiff" overwrite ="yes">
    <!--- Use the text image as a watermark in the PDF document. --->
    <cfpdf action="addwatermark" source="c:/book/1.pdf" image="text.tiff"
        destination="watermarked.pdf" overwrite="yes">

  • How can I change the content of a text field in a PDF form with a defined variable?

    Hello all!
    First time poster, and getting pretty frustrated with trying to figure out this one issue. Here is the scenario: I am using Acrobat 10 Pro to design what is essentially a giant order form. I designed the document in InDesign, defined the various buttons and whatnot and then exported it to Acrobat to continue building the form.
    I have a Radio Button group called "conference_opportunities" which contains different options at different price points, so they are all named the same, but have different values (so that they belong to the same group and only one can be selected at a time).
    What I have done is created a "MouseDown" event on the radio button that sets a variable called "ConferenceOpportunity" which is equal to the title of the option they are picking. I then want to take that variable and display it in a text box called "Conference_Option". I am using a variable because the values of my radio buttons are all the actual prices of the option they are picking, so I can't define the value as the title of the option.
    So its an array of radio buttons, and at the bottom of the page there is the Option They Selected, the quantity (which can change) and the value (in dollars)
    I also then want to display this variable at the end of the document as a sort of summary of everything they chose to purchase as well but I imagine its the same code.
    I am not an expert Javascript person at all, so any code snippets would help greatly. I have looked over the Adobe Document on the SDK and API and have not been able to find a solution. I have also turned to the almighty google and still no luck.
    Any help would be greatly appreciated!
    Thanks Everyone

    All you now have to do is use that variable to the value property of your text field... So add this at the end of your code:
    this.getField("Conference_Option").value = ConferenceOpportunity;
    Also, I would use MouseUp, not MouseDown.

  • Problem With PDF Generation With CFDOCUMENT

    I am having a problem with generating PDF's from my web
    pages.
    For example...if you go here
    http://www.michaelpumo.com
    and click the "Convert to PDF" link on the left you'll see that the
    output is totally wrong.
    Is it to do with my markup? I can't figure this out.
    Many thanks in advance.

    I, along with many others have had these types of problems
    and so far adobe hasn't addressed them (or at least I couldn't find
    anywhere where they have).
    Kapitaine, Have you tried outputting to flashpaper? Most of
    my formatting problems only occur in PDF.
    For instance, align right does not work properly. It pushes
    everything to the right, but is not flushed to the right so the
    output looks very unprofessional. This cfdocument was a good idea,
    and a good selling point but it is embarrassing to have sold my
    boss on it only to find out it is almost worthless in it's current
    state. BTW I'm working on a CFMX7.0.2 on Linux RHEL4.

  • ADF Faces OutputText text-align

    I´m working in an ADF Faces Application, a column in a table is showed using an outputText but the customer wants its value is showed right align.
    I've tried the propertie inlineStyle="text-align:right;" in the outputText but it's not working correctly.
    I think that inlineStyle="text-align:right;" doesn't work with outputText.
    Are there any solution to align text in a af:outputText?
    Thanks in advanced
    Toni - Oracle Principal Consultant - Spain

    Hi,
    select the column and and change the FormatType to Number.
    <af:column headerText="Description"
                           sortProperty="Description" sortable="false"
                           formatType="number">Brenden

  • Text alignment on WebView

    I have the following code:
    String htmlTexto = "<HTML> <script> function miFuncion(){ alert('hola');}</script> <BODY>";
            htmlTexto += "<P style=\"text-align:justify;font-weight:bold;font-family:verdana;\">"
                    + tesisActual.getRubro().replaceAll("\n", "<BR>\n") + "</P>";
    wbTexto.getEngine().loadContent(htmlTexto);wbTexto is a WebView and the text inside is ok, it puts Verdana as font, bold BUT left align on the text... I need to set it justify.
    Thanks in advance.
    Edited by: charlymoon on 25/02/2013 05:48 PM
    Edited by: charlymoon on 7/03/2013 11:15 AM

    I think text justification doesn't work in JavaFX 2.2.
    See:
    http://javafx-jira.kenai.com/browse/RT-17235 "HTMLEditor Justify button does nothing"
    The issue is marked as fixed in a later version of JavaFX.
    I tried a recent jdk8 snapshot release to see if it worked in the WebView and HTMLEditor and it didn't (jdk8b79, Win7):
    http://jdk8.java.net/download.html
    As the fix was pretty recent, it may just be that it will take a while for the fix to filter down to an early access binary build.
    Test for WebView:
    import static javafx.application.Application.launch;
    import javafx.application.*;
    import javafx.scene.Scene;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    public class JustifiedApp extends Application {
      private static final String loremIpsum =
        "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
      private static final String htmlText =
        "<p style='text-align:justify;font-weight:bold;font-family:verdana;'>" + loremIpsum + "</p>";
      @Override public void start(Stage stage) {
        WebView webview = new WebView();
        webview.getEngine().loadContent(htmlText);
        stage.setScene(new Scene(webview));
        stage.show();
      public static void main(String[] args) { launch(args); }
    }Test for editor:
    import static javafx.application.Application.launch;
    import javafx.application.*;
    import javafx.scene.Scene;
    import javafx.scene.web.HTMLEditor;
    import javafx.stage.Stage;
    public class EditorApp extends Application {
      private static final String loremIpsum =
        "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
      private static final String htmlText =
        "<p style='text-align:justify;font-weight:bold;font-family:verdana;'>" + loremIpsum + "</p>";
      @Override public void start(Stage stage) {
        HTMLEditor editor = new HTMLEditor();
        editor.setHtmlText(htmlText);
        stage.setScene(new Scene(editor));
        stage.show();
      public static void main(String[] args) { launch(args); }
    }Loading the exact same html into Firefox or IE will justify the text fine:
    <p style='text-align:justify;font-weight:bold;font-family:verdana;'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>You may want to file an additional bug for your specific case against the runtime project:
    http://javafx-jira.kenai.com
    The JavaFX developers could check if your issue is fixed against the latest development trunk and close your issue as duplicate if it is else otherwise fix it.

  • How to align the text in justify format with SQL Server Reporting Services?

            How to align the text in justify format In SQL server Reporting Services? Is there any code to do so?

    Hi,
    I'm afraid that if you want to have this kind of functionality, you will need to write a custom control. Here is an example: http://msdn2.microsoft.com/en-us/library/ms345265.aspx. The issue with custom controls is that it needs to be known by all the reportservers that will render your report.
    Greetz,
    Geert
    Geert Verhoeven
    Consultant @ Ausy Belgium
    My Personal Blog

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

  • Sync Text alignment in HTMLEditor and a PDF generated using FOP

    Hi,
    How to sync text alignment in HTMLEditor and a PDF generated using FOP ?
    I tried setting the dimensions of HTMLEditor and PDF in pixels by calculating the size in Pixels for A4 paper size with a particular dpi value.
    Have done the font settings as well. The problem is I see uneven line cuts in the PDF as compared to HTMLEditor.
    Thanks.

    It's not a realistic expectation. You are expecting the PDF produced by whoever provided your FOP implementation to observe exactly the same typographical rules as HTMLEditor. Basically it won't, and there is no way to enforce it. Line breaking/hyphenation/word spacing algorithms can be of great complexity. You are expecting two systems that aren't specified to agree, to agree.

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • Looking for help for sharing pdf files with ipad from mac.  Pages only recognizes text.  What app should I use for file sharing pdf documents?

    Looking for advice on how to share pdf files with iPad from Mac.   Pages seems to only recognize text.   What app is recommended for pdf documents?

    Welcome to Apple Support Communities!
    If I understand your question, you want to read pdfs on your iPad, not create or edit.
    Drag pdf files to the iPad icon in Finder while connected to your computer via the USB cable.
    They will show up in the iBooks application
    (If you don't already have iBooks, it's a free download from the App Store.)
    Once installed, there are two buttons at the top left of the Bookshelf.
    One is Books, the other is Collections.
    Tap Collections, and you'll see Books and PDFs.
    Tap PDFs and you're there.

  • How to replace numbers with text in tax return pdf using Adobe Acrobat X Pro

    How do I replace numbers with text in tax return pdf using Adobe Acrobat X Pro? The tax return was created using CCH software. Thanks for your review.

    Thanks Bill for your quick reply. CCH software is one of the major
    suppliers of tax return software. I found an internal source that helped me
    make the changes from numbers to text i.e. "$123,456" to "See Schedule O".
    I am not sure if I am working in form or final text. Thanks again! Kelly

  • An app to where I can edit existing PDF files with typed text

    I would love to be able to edit my contracts for my business on the iPad to email. On my computer I use Adobe Photoshop. My contract is a PDF. I would like to find an app where I can just fill in details in the appropriate locations on the contract using typed text with selectable fonts like filling in the customers name etc. any ideas.

    I would love to be able to edit my contracts for my business on the iPad to email.
    Design the contract as a PDF form with fillable fields rather than editing the PDF.
    On my computer I use Adobe Photoshop
    Really?
    Rather than editing saved PDF (which can very easily mess up the PDF formatting and lots of other things), keep the original document (word processor file) and edit that as needed then save as a PDF.

  • If pdf generated with Bullzip, opens with problems in text (missing, weird characters, etc...)

    pdf opening in new tab shows problems with text. If pdf was generated with Adobe acrobat, works fine. If pdf generated with Bullzip, opens in new tab, but with problems.

    hello lwhitman, the pdf preview in firefox is still under very active development. if you find any issues please report them at https://github.com/mozilla/pdf.js/issues & provide a sample pdf-file which shows the problem.

Maybe you are looking for

  • Receiver MDM adapter not working !!! Please suggest !!!

    Hi Experts ,                             mine is a idoc to MDM adapter scenerio. The idoc message  is successfully passing the PI integration engine , but failing in the adapter engine ( MDM communication channel ) giving the following message. Confi

  • MessageTransformationBean Problem

    Hi Guys, I have a .txt file with below structure Plant|Contact_ID|Contact_Name 017S|96630|GIL1 017S|96630|GILami 017S|96630|ssss 017S|96630|ffff The first line is Header Value and Rest of the lines are Item values. and I dont want the Header Value in

  • Recurring Kernel Panic from VShieldScanManag

    I have long ago un-installed MacAfee, and removed all its pieces I can find. I removed "cma' from the startup, and I cannot find a single file et. However, I keep having kernel panics that list "VShieldScanManag" as the culprit. I am also hacing disk

  • Parameter List displaying all the values on Parameter form

    Dear All...If I uncheck the "Restrict List to predetermined values" option, then report parameter form displays all the values on web parameter form instead of displaying those values in the List Item. Is it the Default behaviour of Oracle Reports 10

  • Flash for Symbian

    Hello, I have a Nokia 9300. Does anybody knows if there is a Flash version compatible for Nokia 9300? Thank you, Calin POP-TIRON