Компания ПУЛ - разработка приложений на Lotus Notes/Domino CodeStore. Коды Примеры Шаблоны1. Lotus Web Content ManagementLotus Web Content Management delivers end-to-end Web content management for Internet, intranet, extranet, and portal sites.2. Creating an IBM Lotus Web Content Management site structure with one clickRead about a simple solution that enables you to define site structures in IBM® Lotus® Web Content Management in an automated fashion. This solution allows you to save time on an otherwise time-consuming and monotonous task.3. Generating PDF Documents From Templates | BlogGenerating PDF documents on the fly isn't exactly rocket science and - with the help of tools like iText - is easily done in Java and something I've talked about before. The trouble is that creating them is a cumbersome and often tedious task if what you want is anything other than a set of plain text paragraphs added in series. Unlike creating HTML everything in PDF-land is of absolute size and position. I find that getting the result you want is often a case of repetitive, pixel by pixel tweaking to get it right. You need a lot of patience. If you had a complicated document to create with logos and background images then you're in for a rough ride. What would make more sense is to use a GUI tool to author a base template and then just have your code add the text bits where necessary. This is the situation I found myself in recently and after a bit of digging I worked out how to take an existing PDF and add to it. PDF templating if you will. Creating a TemplateFirst thing to do, assuming you've not already been provided with a template is to create one. Let's look at creating a letter head. I did this in Word, as you can see below and simply pasted in some images, moved them about and added some company details to the footer in an off grey colour. Once I was happy with it I used the File - Save As - PDF menu option to save the file in PDF format.
You can see the resulting PDF below:
What I did with the PDF is attached it to a document in the same Notes database as we're generating the PDFs from. In reality I had been provided with a PDF template by my client's design agency, so that's what I attached. I could skip the bit above about creating a template, but went through it here in case you need help or inspiration. The idea behind adding it as an attachment to a document is that the client has control over the template and can change it as and when they please. That being another benefit of this approach - if they happened to change the design of the letterhead then I'd have to go back to messing with the code each time. With this approach there should be no need to. All we need to do now is add the actual content. Here's an example of what the generated PDF looks like once we've done adding to it with our own code:
Let's look at how we'd do that. Adding To The TemplateThe code below is the Java needed to create a new PDF document, import the existing template and then add our own text atop of it. //Setup a new PDF Document Document document = new Document(); ByteArrayOutputStream os = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document, os); document.open(); document.newPage(); //Get the template PDF as the starting point! View files = db.getView("files"); lotus.domino.Document filestore = settings.getDocumentByKey("pdf_template.pdf", true); String filename = filestore.getItemValueString("FileName"); EmbeddedObject file = filestore.getAttachment(filesname); InputStream is = file.getInputStream(); //Here's the key part. Let's turn the template in to //usable PDF object PdfReader reader = new PdfReader(is); PdfImportedPage page = writer.getImportedPage(reader, 1); //Now, add it to the blank PDF document we've opened PdfContentByte cb = writer.getDirectContent(); cb.addTemplate(page, 0, 0); //Now do the usual addition of text atop the template document.add( new Paragraph("Here some text added to the template") ); //Etc, etc //Done! document.close(); //Tidy up is.close(); file.recycle(); //Make SURE you do this!!! //Attach the resuling PDF to the Notes document Stream stream = session.createStream(); stream.write(os.toByteArray()); MIMEEntity m = doc.createMIMEEntity("Files"); MIMEHeader header = m.createHeader("content-disposition"); header.setHeaderVal("attachment;filename=\""+filename+"\""); m.setContentFromBytes(stream, "application/pdf", MIMEEntity.ENC_IDENTITY_BINARY); m.decodeContent(); Code's boring though. What you want is a demo and a download, no? A DemoHere's the demo form. Fill in the fields and submit to see what gets generated. Here's an example of an outputted PDF file. The working download will be in form of DEXT 20091123, which will be in the Sandbox in the next few minutes. 4. TrainingStart here to find the tutorials, courses, and certification guides you need to stay up-to-date with Lotus Software products and to keep your skills top notch.5. Lotus Notes/Domino notes.ini settingsFind information about Lotus Notes and Domino notes.ini settings from A to E.6. Get on the Fast Track to XPages FluencyXPages is a completely new approach to developing IBM Lotus Domino applications. It simplifies many heretofore difficult and tedious development tasks and adds powerful new capabilities. Find out how to work with XPages in Domino Designer 8.5 and discover the power of server-side JavaScript, which lets you work with the back-end Domino Java classes without having to know Java. Форумы о Lotus Notes/Domino:
Интенет эфир о Lotus Notes. Блоги и форумы1. RT @vzhik @a_nov вот к чему я точно никогда не привыкну так это lotus note 7. УжеRT @vzhik @a_nov вот к чему я точно никогда не привыкну так это lotus note 7. Уже почти 1,5 года как работаю с ним, но все равно воротит..2. on Google Chrome OSА то какой смысл таскать с собой 3 кг ноутбук с dual-pro-cores и мощным видеоадаптером, если уставшей батарейки хватает на пару часов, видеокарточка просто жрет энергию, Windows загружается минут 10 и тормозит, а dual-core процессор убивается всякими ненужными Office 7 и Lotus Notes монстрами?3. Получил предложение подработать на программировании в Lotus Notes.Получил предложение подработать на программировании в Lotus Notes.4. Легкий поиск по базе вопросов – как узнать год выпуска телефона – пробить номер ...Централизованный доступ и легкий поиск для любых приложений Lotus Notes.5. Juniper WXC 1800 + 250Клиента особо интересовало сжатие трафика Lotus Notes и VoIP.6. Lotus Notes Client Enhancementssdsdssd7. Г» — это не «гугль»Не люблю я монстров типа календарь-планировщик-блокнот-и-до-кучи-почта в одном флаконе, лимит терпения исчерпан Outlook’ом и Lotus Notes.8. вконтакте смотреть сообщенияТакже L0phtCrack особо опасна, так как, даже при использовании соединений на базе Lotus Domino Server небыл взломан хакерами.9. Tell auto-indexer to skip a specific viewWith version 8.0, a database option was added to let you tell the server's view-indexing process to skip that database. This is handy, but it would also be nice to have such an option on the view level. ...10. Связка waЗдравствуйте, товарищи!!Интересуюсь вот таким вопросом: у меня есть агент,который запускает метод в стороннем web-service. Для связи с web-service я использую Soap-Toolkit. Но при отработке агента возн7икает ошибка ,что ProjectName missing. Не подскажите в чём проблема ???? вот код вызываемого агента: Dim Connector As Variant, Serializer As Variant, Reader As Variant Set Serializer =createobject("MSOSOAP.SoapSerializer30") Set connector =createobject("MSOSOAP.HttpConnector30") Set xmldom=createobject ("Msxml2.DOMDocument.5.0") Set reader=createobject ("MSOSOAP.SoapReader30") Set Client =CreateObject("MSOSOAP.SoapClient30") Call Client.mssoapinit (wsdllink) Connector.Property("EndPointURL") = wsdllink Print "задаём логин и пароль пользователя,под которым идёт обращение" 'client.ConnectorProperty("AuthUser") = "pbrfilesinout" 'client.ConnectorProperty("AuthPassword") = ",jcchtathtyn" 'Client.ConnectorProperty("WinHTTPAuthScheme") = 1 Print "Коннектимся к сервису" Call Connector.Connect ' Connector.Property("SoapAction") = "CeatePWA" Call Connector.BeginMessage Stop ' устанавливаем Тайм-аут ,чтобы сервис сммог отработать нормально Client.ConnectorProperty("Timeout") = 700000 ' вызываем метод из wsdl 'Set Res=Client.CeatePWA(param1,param2,param3) ' ловим выходной поток отработки метода wsdl- файла Serializer.Init Connector.InputStream Serializer.StartEnvelope "SOAP-ENV" , "http://schemas.xmlsoap.org/soap/encoding/" Serializer.StartBody Stop Serializer.StartElement "CeatePWA" , "http://tempuri.org/" Print "Передаём в метод параметры" Serializer.startElement "loginGMP" Serializer.writeString param1 Serializer.EndElement Serializer.startElement "number" Serializer.writeString param2 Serializer.EndElement Serializer.startElement "urlHook" Serializer.writeString param3 Serializer.EndElement Serializer.EndElement Print "Закончили передачу параметров" ' Serializer.WriteXml ("C:\MyService.xml") Serializer.endBody Serializer.endEnvelope Connector.EndMessage errh =Client.FaultString If errh <> "" Then Print "Ошибка" +errh End If Print "Читаем исходящий поток" Reader.Load Connector.OutputStream Print "проверка на наличие ошибок" If Not ( Reader.faultstring Is Nothing)Then Print "нашли ошибку при отработке сервиса" Print Cstr( Reader.faultstring.text ) Else Print " Смотрим результаты работы" ' Msgbox (reader.RPCResult.text) Msgbox Reader.DOM.xml End If 11. 2.Lotus Notes2.Lotus Notes12. B4cchus впрочем, я считаю вероятным появление корпоративной кальки с gwave в рамках,B4cchus впрочем, я считаю вероятным появление корпоративной кальки с gwave в рамках, скажем, IBM Lotus Notes13. Lotus (что Domino, что Notes) - УГ чуть более чем полностью.Lotus (что Domino, что Notes) - УГ чуть более чем полностью.14. TCP/IPportname_TCPIPAddressContent15. Temp_Index_Max_DocContent16. TimeZoneContent17. Topology_WorkIntervalContent18. TransLog_MaxSizeContent19. TransLog_Path20. TransLog_Performance21. TransLog_Status22. TransLog_UseAll23. Farfurkis:idea, друге місце firefox, потім Lotus Notes, Tortoise SVN і за ними антивірус.24. Не открывается архив почтовой БД по ссылкеЗдравствуйте. Встретилась такая проблема... 25. Creating an IBM Lotus Web Content Management site structure with one clickRead about a simple solution that enables you to define site structures in IBM® Lotus® Web Content Management in an automated fashion. This solution allows you to save time on an otherwise time-consuming and monotonous task.26. TCP_EnableIPV6Content27. TCP_DefaultZone28. DIIOPCookieCheckAddressContent29. DIIOPConfigUpdateInterval30. Deny_Access31. DEFAULT_QV_USER32. DEBUG_TRANSLOG_EXTENTS_PERCENTAGE_FULL33. Debug_Fault_Analyzer34. Debug_ThreadID35. TimeSeparator36. Выпуск рассылки "Lotus Notes/Domino -- РїСЂРѕРґСѓРєС‚ Рё РёРЅСЃС ...172".37. Sams Teach Yourself Flickr in 10 Minutes38. Выпуск рассылки "Lotus Notes/Domino -- РїСЂРѕРґСѓРєС‚ Рё РёРЅСЃС ...Microsoft выпустила СЃРїРёСЃРѕРє совместимых СЃ Windows 7 программ * Microsoft Outlook(R), Lotus Notes(R)) СЏ отноССѓСЃСЊ СЃ некоторым предубеждением (РЅРµ лиСённым * Съвместимост СЃ Windows 7 - РєРѕР№ Рµ зад Р±РѕСЂРґР°? * DDM_SecProbe_PersonDoc_Limit * DBDir_Cache_Save_to_DB_Interval * DEBUG_CRASH_SENDTOIBM_DISABLE * DBDir_Directory_ Блиц-опрос
Вакансии для специалистов1. Lotus Notes DeveloperLotus Notes Developer Reston, VA L-3 Communications Services Group, Intelligence Solutions Division has an opening for a Lotus Notes Developer in Reston, VA. Clearance: Must have current TS/SCI FULL ...2. LOTUS NOTES ADMINISTRATORPosting Date:11/09/2009 Job Number:HR08504 Job Title:LOTUS NOTES ADMINISTRATOR Work Schedule:M, T, W, Th, F - 08:00 AM - 05:00 PM Shift Detail:M; T; W; Th; F Job Location:Phoenix,AZ Department:I...3. Lotus Notes DeveloperLotus Notes Developer Full Time Regular posted 10/13/2009 Job Category MIS - Info Tech / Telecommunications Req ID 158730 Able to obtain security clearance? None Currently possess ...4. Lotus Notes DeveloperLotus Notes Developer Full Time Regular posted 10/16/2009 Job Category MIS - Info Tech / Telecommunications Req ID 159027 Able to obtain security clearance? None Currently possess ...5. Lotus Notes Developer (CF)Lotus Notes Developer (CF) Full Time Regular posted 4/6/2009 Job Category MIS - Info Tech / Telecommunications Req ID 144349 Able to obtain security clearance? None Currently posse...6. Lotus Notes DeveloperLotus Notes Developer Full Time Regular posted 10/14/2009 Job Category MIS - Info Tech / Telecommunications Req ID 158834 Able to obtain security clearance? None Currently possess ...7. Lotus Notes DeveloperLotus Notes Developer - (US-DC-Washington) Compensation:$20.00 - $36.00 / Hour Minimum Education:High School Job Type:Contract Jobcode:LotusNotes Email this job to yourself or to a friend|Job Match Te...8. Lotus Notes AdministratorLotus Notes Administrator Requisition Number: EF17105 Location: WASHINGTON, DC US Travel Involved: None Job Type: Regular Full Time Job Level: Experienced (Non-Management) Education: Bachelors Degre...9. Lotus Notes/ Domino Developer 3Title: Lotus Notes/ Domino Developer 3 Category: Information Systems Location: Reston, VA / USA | Sector: Information Systems Posting ID: MS/093602 This job is eligible for theRefer a Friendprogram...10. Lotus Notes Tier 2 AdministratorTitle: Lotus Notes Tier 2 Administrator Category: Information Systems Location: Reston, VA / USA | Sector: Information Systems Posting ID: MS/093608 This job is eligible for theRefer a Friendprogra...Закладки о Lotus Notes1. Exporting Email from Lotus Notes to Outlook/Thunderbird/IMAP (For Free!) (Notes Export Part 1) | Tech[niques]2. How to Deal with “Private” and “Private on First Use” Views3. IBM - Domino Router notes.ini debug parameters for SMTPSMTPClientDebug4. Create hotspot buttons on the fly using DXL5. Building Lotus Support in your Company6. Drag and Drop Actions In the Lotus Notes ClientLotus Notes itself offers many cool and useful drag and drop actions. I've been showing end users some of these for a long time, and always there are folks that had no clue drag and drop actions were even available. I wanted to share a few of them with you now.7. Monash dumping Thunderbird for Lotus Notes - News - Software - ZDNet Australia8. OpenNTF.org - Open Source Community for Lotus Notes DominoOpenNTF 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.9. JM Interactive - Setup Lotus Notes with iPhone10. Mei Ying's Tech Blog: Using SharePoint 2007 to Index a Lotus Notes Database11. Mei Ying's Tech Blog: Displaying the Correct Titles of Lotus Notes Documents in SharePoint Search Results12. AweSync | Lotus <-> Google Calendar Synchronization Tool13. The IBM Lotus Community IdeaJam - Search Results14. dominoGuru.comDeveloper Website15. Lotus Notes | Domino Error16. Transfer Lotus Notes Email to Gmail and Unleash That Captured Information | Sales IT Tech17. Conxsys :: nsfRewind for Lotus Domino18. Making various language spell check dictionaries available to Notes 8.5.1 userscom.ibm.notes.branding/enable.update.ui=trueИсточники знаний. Сайты с книгами
По вопросам спонсорства, публикации материалов, участия обращайтесь к ведущему рассылку LotusDomiNotes |
В избранное | ||