ruby

tempfile generation issue from user generated filename in ruby/OS

Problem We used a super simple code in ruby to generate tempfiles with dynamic filename. temp_file = Tempfile.new([title, '.pdf']) where title is a variable value (Input taken from user).so if your insert special or not allowed/expected character as a filename in any Operating system this code will fail.

Prawn table in ruby advanced

Prawn table content and subtable As we discussed in last post about Prawn Table via ruby. Today we’re giving dive more deeper. In Prawn table there are five kind of objects which can be put in table cells:

Prawn ruby table introduction - 1

Table via Prawn in ruby for Pdf Prawn comes with table support out of the box. Tables can be styled in whatever way you see fit. The whole table, rows, columns and cells can be styled independently from each other.

Prawn ruby Scalable Vector Graphics - SVG

Text Annotation - Pdf Pdf(Portable document format) has beautiful feature called text annotation. you can add detailed text information with available clipped images Available annotations in current pdf spec are :

Prawn ruby link annotation,Ruby select note

Text Annotation - Pdf Pdf(Portable document format) has beautiful feature called text annotation. you can add detailed text information with available clipped images Available annotations in current pdf spec are :

Prawn ruby link annotation

Problem - Prawn In Prawn pdf we need to put links on the Image text and fortunatley we’re keeping required co-ordinates with objects. We tried to put Text link with anchor on text available inside image but that wasn’t cool because our images can rotate

Prawn ruby marking stamp at page center

Problem - Prawn We have to put a default text on every page center if we’re not able to insert image at it’s bounding box. Sample Usage define a stamp :-

Prawn ruby pdf creation basics introduction

Prawn Prawn is a pure Ruby PDF generation library that provides a lot of great functionality while trying to remain simple and reasonably performant. Sample Usage create/Initialize new document without having first page created :-

Mobile test automation framework appium introduction

Appium is an open source test automation tool for mobile applications. Which is capable to test any kind of mobile application: native, hybrid and mobile web for iOs and android platform.

ruby vpim library generate expendable vcard

Create VCardField to have more capabilities Subclass of Vpim::DirectoryInfo::Field adds a number of helpful methods for creating VCard fields. {% highlight ruby %} require ‘vpim/vcard’ class VCardField < Vpim::DirectoryInfo::Field def VCardField.