Отправляет email-рассылки с помощью сервиса Sendsay
  Все выпуски  

iCal export database available


Lotus Notes/Domino -- продукт и инструмент. Выпуск: 579

2012-08-17
Поиск по сайтам о Lotus Notes

Содержание:

CodeStore. Коды Примеры Шаблоны (4)

Embedding Fonts In Java PDF-Creating Agents | Blog
The IBM Social Business Toolkit: How to Connect Lotus Notes Data to an Activity Stream
Build an Android Application Using Your Domino Development Skills and PhoneGap -- Sending Data Back and Forth
Getting Started with Managed JavaBeans in XPages

Интенет эфир о Lotus Notes. Блоги и форумы (9)

Lotus Notesとか使ってたぞ
Коломенцев Матвей Николаевич
lotus notes traveler android androids-app-samsung.ru/15613-articles...
oleg_sh Это диалоговое окно Lotus Notes при удалении писем.
lotus notes traveler android android-apps-nokia.ru/kategory1480.h...
Воровские сети
Выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент. Выпуск: 571" от 13 ...
2. както и стыдно Lotus Notes советовать...
Lotus Domino Server

Закладки о Lotus Notes (3)

iCal export database available
Notes/Domino 8 Forum - Date (threaded)
Migrating from Domino to Exchange 2007 (Part 1)
Спонсоры рассылки:
Поиск по сайтам о Lotus Notes/Domino
Полнотекстовый поиск по тематическим сайтам о Lotus Notes
Хостинг на Lotus Domino















Блиц опрос
Материалы на английском
(голосование возможно только из письма рассылки)
  • Нормально. Могу читать
  • Не годиться. Хочу только на русском
  • Компания ПУЛ - разработка приложений на Lotus Notes/Domino

    CodeStore. Коды Примеры Шаблоны

    1. Embedding Fonts In Java PDF-Creating Agents | Blog

    Yesterday I talked about using Web Fonts to overcome the limitations of being restricted to the limited set of fonts available to web developers. Today I'll talk about over-coming the even more limited set of fonts available when creating PDF documents.

    When you create a PDF with the likes of iText you're normally limited to the choice of Courier, Helvetica and Times New Roman. Helvetica is probably the default choice, but it's borrrrrring.

    Let's use Source Sans Pro instead! Here's an example of a PDF using Source Sans Pro.

    image

    So, so, so much nicer than Helvetica.

    If you want to try it out, you can create a Domino-driven PDF with the above font embedded in it by using this demo form.

    How To Embed Fonts

    How do you go about embedded the font for use with a Domino Java agent? Well, first thing you do is download the font. It doesn't have to be Source Sans Pro, but assuming you want it then download the "fonts only" ZIP from Sourceforge and extract to your PC.

    Now, open the Java Agent you use for creating PDFs and click the Import dropdown button and choose to import a Resource. Browse to the folder of fonts and select the ones you want to use in your PDF.

    image

    When you're done the Agent will list the font files in the "Res" section, as below:

    image

    With the font files stored in the Agent you can load them at runtime and create a BaseFont based on them.

    Here's the code that load the fonts as two BaseFonts (one for regular fonts and one for bold). The code then uses the BaseFonts to create some useable Fonts.

    //Regular base font
    BaseFont bf = BaseFont.createFont("SourceSansPro-Regular.otf",
        BaseFont.WINANSI,
        BaseFont.EMBEDDED,
        false,
        getResourceAsByteArray("SourceSansPro-Regular.otf"),
        null);
    
    //Bold base font
    BaseFont bfb = BaseFont.createFont("SourceSansPro-Bold.otf",
        BaseFont.WINANSI,
        BaseFont.EMBEDDED,
        false,
        getResourceAsByteArray("SourceSansPro-Semibold.otf"),
        null);
    
    //A collection of fonts (based upon our base fonts) for re-use throughout the code!
    Font defaultFont = new Font(bf, 12);
    Font headerFont = new Font(bfb, 18);
    Font tinyFont = new Font(bf, 9);
    Font tinyFontBoldAndWhite = new Font(bfb, 9, Font.NORMAL, Color.WHITE);
    

    It's those last four Font objects that we'll use in our code to specify the font for any PDF objects we add to our iText PDF Document.

    Loading Resources

    Notice in the above code that there was a call to a method call getResourceAsByteArray(). This simply gets a stream on the font file we stored in the Agent and converts it to a byte[] array that the BaseFont class can use.

    Here's what that method looks like.

    public static byte[] getResourceAsByteArray(String resourceName) throws Exception{
        InputStream is = this.getClass().getResourceAsStream("/" + resourceName);
        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
    
        int nRead;
        byte[] data = new byte[16384];
    
        while ((nRead = is.read(data, 0, data.length)) != -1) {
            buffer.write(data, 0, nRead);
        }
        buffer.flush();
    
        return buffer.toByteArray();
    }

    The key to the above code is the getClass().getResourceAsStream() call which is what actually loads the file from the Resources section of the Agent.

    Using The Fonts

    Now that we've defined our Font objects we can use them in the code when added iText objects such as Paragraph to the document.

    Paragraph myParagraph = new Paragraph( doc.getItemValueString("Title") , headerFont);
    myParagraph.setAlignment(Element.ALIGN_CENTER);
    document.add( myParagraph );
    
    Anchor anchor = new Anchor(
        new Chunk( "This is a link back to the document which created this PDF!",
            new Font(bf, 10, Font.UNDERLINE, new Color(0, 0, 255) )
        )
    );
    

    It's as simple as that. And the results are worth it.

    Trade-Off

    As with using Web Fonts there's a file size trade-off to consider. Embedding fonts in a PDF can easily add 50KB to its size. And that's per font-style. So, if you want Regular, Bold and Italic, it's three times that size.

    You could of course just embed the Regular font and force it to act like bold or italic, but, as with the web, you don't get the same results.

    Click here to post a response

    2. The IBM Social Business Toolkit: How to Connect Lotus Notes Data to an Activity Stream

    The IBM Social Business Toolkit is a set of application programming interfaces (APIs) for use in developing applications that can publish events to, and retrieve events from, an activity stream in IBM Lotus Notes or IBM Connections. Learn what's involved in creating a Notes application that provides an embedded experience of the items it publishes to an activity stream, so that the user can handle these items without having to leave the stream. Understand the basic concepts and follow the steps using examples you can implement for yourself on the IBM Lotus Greenhouse test environment.

    3. Build an Android Application Using Your Domino Development Skills and PhoneGap -- Sending Data Back and Forth

    Learn to exploit your existing Web development skills to create native Android applications that work with Lotus Notes and Domino. Using the PhoneGap framework, discover how to send Domino data back and forth from an Android device via Ajax.

    4. Getting Started with Managed JavaBeans in XPages

    Discover how to add functionality to your XPages using your Java coding skills. Learn to create managed beans that provide business logic and can bind to user interface controls. Follow step-by-step instructions for creating two simple managed beans: one to display a message depending on a property value and the other to display navigation links.

    By clicking Submit, you agree to the developerWorks terms of use.

    The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

    All information submitted is secure.

    • Close [x]

    The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

    Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

    By clicking Submit, you agree to the developerWorks terms of use.

    All information submitted is secure.

    • Close [x]

    Lotus Sandbox archived

    The Lotus Sandbox was closed to all new submissions in 2007. Downloads of previous submissions were still available as an archived resource following that closure, but effective September 2010, downloads from the Lotus Sandbox are no longer available.

    If you need to contact us regarding the removal of the Lotus Sandbox, please use our feedback form.

    Resources for samples and templates

    If you are looking for samples and templates for use with Lotus products, please use these resources:

    • IBM Lotus and WebSphere Portal Business Solutions Catalog
      The IBM Lotus and WebSphere Portal Business Solutions Catalog on Lotus Greenhouse is a rich, Web 2.0 style catalog designed to dynamically deliver widgets, plug-ins, portlets, and sample applications across the entire Lotus and WebSphere Portal software portfolio.
    • OpenNTF.org
      OpenNTF is devoted to enabling groups of individuals all over the world to collaborate on IBM Lotus Notes/Domino applications and release them as open source, providing a framework for the community so that open source applications may be freely distributed, using widely accepted licensing terms, and increasing the quality and quantity of templates, applications and samples that are shared by the community.
    Help: Update or add to My dW interests

    What's this?

    This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

    And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

    View your My developerWorks profile

    Return from help

    Help: Remove from My dW interests

    What's this?

    Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

    View your My developerWorks profile

    Return from help

    Интенет эфир о Lotus Notes. Блоги и форумы

    1. Lotus Notesとか使ってたぞ

    Lotus Notesとか使ってたぞ

    2. Коломенцев Матвей Николаевич

    IBM Lotus Notes

    3. lotus notes traveler android androids-app-samsung.ru/15613-articles...

    lotus notes traveler android androids-app-samsung.ru/15613-articles...

    4. oleg_sh Это диалоговое окно Lotus Notes при удалении писем.

    oleg_sh Это диалоговое окно Lotus Notes при удалении писем. Хотел бы я пообщаться с их тестировщиками...

    5. lotus notes traveler android android-apps-nokia.ru/kategory1480.h...

    lotus notes traveler android android-apps-nokia.ru/kategory1480.h...

    6. Воровские сети

    Компания специализируется на выпуске софта, обнаруживающего "дыры" в защите программных приложений для Windows, например: "вскрытие" паролей для архивных файлов ZIP, RA, ARJ, дешифровка офисных файлов Word, Excell, Access, декодирование защищенных паролем файлов Lotus Notes и т.д. Компания "Элкомсофт" ? член Ассоциации по борьбе с пиратством "Русский щит".

    7. Выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент. Выпуск: 571" от 13 ...

    IBM Lotus Domino and Notes Information Center * Using Lotus Notes with Eclipse to manage and run your Java programs * Инспектор (помощник) по кадрам * lotus notes traveler android android-app-htc.ru/15881kategory.... * Выпуск рассылки "Lotus Notes/Domino -- продукт и инструмент.

    8. 2. както и стыдно Lotus Notes советовать...

    2. както и стыдно Lotus Notes советовать...

    9. Lotus Domino Server

    Lotus Domino Server
    Блиц-опрос
    Давай знакомиться. В каких отношениях с Lotus Notes?
    (голосование возможно только из письма рассылки)
  • Lotus Администратор
  • Lotus Программист
  • Lotus Пользователь
  • С Lotus Note не знаком
  • Хочу познакомиться с Lotus Notes/Domino
  • Источники знаний. Сайты с книгами


    "Красные книги" IBM

    Книги компании IBM по специализированным тематикам о Lotus Software. Основной язык - английский форматы pdf и html

    Книги компании "Интертраст"

    Для администраторов разработчиков и пользователей. Настройка и администрирование, разработка и программирование, пользование системой Lotus Notes
    Документация. YellowBook
    Оригинальная документация по продуктам Lotus Software. Язык англыйский. Форматы pdf html nsf
    IBM Пресс
    Книги от компании IBM. Книги и брошуры на заказ и на бесплатную скачку в формате pdf
    КУДИЦ-ПРЕСС
    Просмотр и заказ книг. Некоторые книги возможно скачать в формате pdf для свободно чтения и просмотра.
    Книги о Lotus Notes в Интернете
    Ссылки на книги и методички находящиеся в свободном пользовании. Ветки форумов обсуждения книг и материалов. Поисковый сервер по хелпам Lotus Notes книги от Google для свободного просмотра

    В избранное о Lotus Notes/Domino В подготовке выпуска использовались материалы и знания
    По вопросам спонсорства, публикации материалов, участия обращайтесь к ведущему рассылку LotusDomiNotes

    В избранное