tcpdf change digital signatures numerotation - tcpdf

My pdf file should have several digital signatures displayed for the customers.Each customer is using SIG_CUSTOMER as name followed by a numerotation added by tcpdf. I need to change from SIG_CUSTOMER [001], SIG_CUSTOMER [002], SIG_CUSTOMER [003] etc to SIG_CUSTOMER_1, SIG_CUSTOMER_2, SIG_CUSTOMER_3 etc..
How can I do this? I searched into the tcpdf files but I couldn't find where this numerotation is automatically set.
Thank you

Related

Google ImportXML from QGIS metadata file

I am trying to capture elements of an qmd file (that is xml markup) using Google Sheets importxml. Based on How to use importXML function with a file from Google Drive? I think I've got the file importing correctly but can't seem to capture any of the tags.
Here's what I am trying -
=importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","\\identifier")
Here's what the qmd/xml file looks like
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="3.9.0-Master">
<identifier>Z:/My Drive/Mangoesmapping/Spatial Projects/2019/DSC/132_Ongoing_Asset_Updates/Working/Sewerage_Updates/Sewerage_Manholes_InspectionShafts.TAB</identifier>
<parentidentifier>Sewerage Manhole Infrastructure</parentidentifier>
<language>AUS</language>
<type>dataset</type>
<title>Sewerage Manholes within Douglas Shire Council</title>
<abstract>Sewerage Manholes within Douglas Shire Council. Most data has been updated based on field work, review of existing AsCon files and discussion with council staff responsible for the assets in 2018/2019. In Port Douglas most of the infrastructure has been surveyed in. </abstract>
<keywords vocabulary="gmd:topicCategory">
<keyword>Infrastructure</keyword>
<keyword>Sewerage</keyword>
If I use
=importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","*")
I get
But I really would like to just get the elements I want by placing the importxml for each tag in the cell I need it in.
You want to retrieve ### of <identifier>###</identifier> from https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download
I could understand like above. If my understanding is correct, how about this answer?
Issue:
In your question, the formula of =importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","\\identifier") uses \\identifier as the xpath. From your data you want to retrieve the values, it seems that you are trying to retrieve ### of <identifier>###</identifier>.
In this case, in order to Selects nodes in the document from the current node that match the selection no matter where they are, // is required to be used instead of \\. This can be seen at the document of here.
Modified formula:
So =importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","\\identifier") can be modified as follows.
=importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","//identifier")
As other xpath, from your data in your question, you can also use the xpath of /qgis/identifier instead of //identifier. So you can also use the following formula.
=importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","/qgis/identifier")
References:
IMPORTXML
XPath Tutorial

Limit allowed types of attachment files to the few I need

I got Swiftmailer today and it works fine for me, but it would be much better
if O could change the allowed file types for attachments. I read the Documentation for Attachments a hundred times but I'm still unable to send a DXF or ZIP file via POST from a Webform. I use this code:
if(is_uploaded_file($_FILES['anhang']['tmp_name'])) {
$message->attach(
Swift_Attachment::fromPath($_FILES['anhang']['tmp_name'])->setFilename($_FILES['anhang']['name'])
);
}
to figure it out. Please help me to let the users of my form
only send me JPG, PNG, ZIP, DXF, DWG and PDF files.
I'm also interested in hiding "hidden" form fields in the email (like maximum file size for POST Upload).

Magmi on Magento 1.4.2CE visibility always catalog&search + error w/page_layout & options_container

I'm relatively new to Magmi but have had to mess with EDI and csv files on many different systems over the years... I have only been importing simple products with magmi for starters and have a couple of questions/problems
At first all of my imported new products were available in every store view (we have 5) and I now realize from the docs that's because it was set to "admin", however under visibility, everything shows up visible in both catalog and search, even if it is set only to "catalog" in the csv or as "not visible individually". This is problematic for certain semi-private category products and for configurable child-products. I'm sure there is a simple explanation but I can't find it.
Also, I messed up yesterday. I copied 20 lines from a products master export, made a new worksheet and edited most of the fields to reflect a case of that product - every field except sku itself. I imported it (set to create and update because create itself skipped all 20 sku's - of course) and it updated my original product. I made a fresh csv with the original 20 lines and reimported it, the products look fine - except...
Now when I export from a master export profile in magento it does it but I get errors for the 20 skus that I can't quite decipher (referencing options_container and page_layout)- it looks like this http://tinyurl.com/mp5g27v
Any insight would be great
You simply forgot to use "Generic Mapper" plugin in your import profile.
Generic Mapper is a plugin that allows recognizing "text values" for fields that are meant to store numeric values. And has to be used to handle standard magento export format which exposes localized textual values.
see plugin documentation
When selected, this plugin will handle all standard mappings used by magento ( visibility, page_layout, options_container , aso...)

How to store a picture within Active Directory using Ruby in a Rail3App?

All I want to do is to upload an image into the Active Directory. So far I can update any AD information but the image. I have tried to search for some idea but came up with nothing so far.
Do I have to encode an image in a certain way? Do I just ldap-replace the jpegPhoto attribute with a byte-string of the photo?
Any hint towards a solution would be great.
Thanks in advance!
First of all, there is an attribute in Active directory called thumbnailPhoto. According to this Microsoft article The thumbNailPhoto attribute contains octet string type data. The AD interprets octet string data as an array of bytes.
If you want a sample code in C# you can get something here.
On the theorical point of view you can also inject a photo with LDIF using tools like "B64" to code your image file in base 64.
Secondly, On my point of view a Directory is not a database.
So, even if the attribute exists (created by netscape according to the OID 2.16.840.1.113730.3.1.35), even if Microsoft explain us how to put a picture into Active Directory, I think that it's better to register an URL, or a path to a file from a file system into a Directory.
I have no idea of the impact on performance of AD if I load each entry with 40 Ko (average size of a thumbnail photo). But I know that if there are bad written programs on the network, I mean kind of program that load all the attributes when they search an entry into the directory, this will considerably load the network.
I hope it helps.
JP
I had this issue and was able to get it working by creating a File stream and passing it through to #ldap.replace_attribute as a binary file. i.e.
thumbnail_stream = open("path_to_file")
#ldap.replace_attribute USERS_DN, :thumbnailPhoto, File.binread(thumbnail_stream)
Where #ldap is an instance of net/ldap, bound to AD. i.e.
#ldap = Net::LDAP.new
#ldap.host = ''
#ldap.port = ''
#ldap.auth USERNAME, PASSWORD
#ldap.bind

extract text from word or pdf based on format (font name and size)

I need to parse large text (about 1000 pages of word or pdf document)and place some of the text inside this document into database fields
I found that the only thing I can distinguish the text I want to extract is the format , it is always "Helvetica-Condensed" size 12
can I do that ? I know how to use the string functions but what I should use to test the format ?
as I said the text is stored inside word document or PDF
if there is third party component can do no problem please refer it to me
Thanks
There is QuickPDF. The price is $249,00.
The other option is to code it yourself. The file specification is available online, and if your only trying to rip the text out of the document this should guide you most of the way.
The only thing to be careful of are documents which are built entirely from images. In that scenario (no matter what you use to read the file) you will also need an OCR type of application. To see if this is the case or not, open a sample of the type of file you are wanting to "extract" text from, select the text to copy then try to paste into notepad.

Resources