Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

db2000 - TXT2PDF

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008, 05:03 PM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post db2000 - TXT2PDF

db2000 - TXT2PDF

Questa semplice procedura realizzata in puro codice Basic4PPC e senza l'utilizzo di librerie esterne (NO DLL!) permette di trasformare qualsiasi file di testo in un documento PDF (Portable Document Format). La realizzazione è stata approntata per scopi didattici ma non solo e i più "smaliziati" potranno dilettarsi nella sperimentazione inglobando qualche immagine JPEG.

A tutti coloro che vogliono approfondire le specifiche dei file PDF consiglio di scaricare il seguente documento:

Attached Files
File Type: zip db2000 - TXT2PDF.zip (41.6 KB, 143 views)
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:49 PM
giannimaione's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 244
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Smile encomio x Maxim

il titolo dice tutto!

p.s.
ok stai "migliorando"
__________________
Gianni
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 06:59 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

ma da dove ti vengono tutte queste idee? Die quante ore e' la tua giornata, 24 o 48 ?

Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:06 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Smile

Vi ringrazio ma come si dice: "imparato un BASIC imparati tutti" ...

Il buon Gianni dice che sto migliorando: è dal 1975 che ci sto provando!
Si vede che poi non sono così capace ...
Maledetta curiosità, chi l'avrebbe mai detto che poi sarebbe diventato un lavoro (1985)?
Onestamente mi sento fortunato perché il mondo dell'elettronica e dell'informatica mi ha regalato e mi sta regalando enormi soddisfazioni e, non lo nascondo, vorrei avere tanto tempo ancora per imparare... Sì, è vero, di imparare non si smette mai e se fosse possibile, caro Filippo, mi alzerei un'ora prima la mattina per avere una giornata di 25 ore!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:25 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Ioannina, Greece
Posts: 356
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 05:57 PM
giannimaione's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 244
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default 25 ore!?

25 ore , non esagerare.

a proposito che ore sono? dai Max e' tardi ... vai a dormire hi,hi,hi,
__________________
Gianni

Last edited by giannimaione : 02-27-2008 at 06:14 PM.
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 05:36 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Comincio a come "Made in Italy"
Reply With Quote
  #8 (permalink)  
Old 02-28-2008, 07:29 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Ciao Roberto,

ben venuto nel forum italiano ( Wilkommen in dem Italienischen Forum).


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #9 (permalink)  
Old 04-28-2010, 02:16 PM
Newbie
 
Join Date: Aug 2007
Posts: 9
Default

maXim

First what a great bit of code, I have been using this in several projects to export PDF files. I have noticed some odd behaviour with the code though.

It appears that if a line of text is greater than 88 characters in length the export process duplicates the line in the PDF instead of wrapping the text round and continuing to the end of the line. I have included a sample PDF produced by your code that demonstrates this along with the initial text file.

As Spanish is not my first language I have been unable to translate the comments in your code in an effort to try and fix this problem.

I hope it is clear what I am saying, if you could provide some pointers that would be fantastic.

Many Thanks

C
Attached Files
File Type: txt Sample.txt (231 Bytes, 23 views)
File Type: pdf Test PDF.pdf (1.4 KB, 27 views)

Last edited by kronos79 : 04-28-2010 at 02:55 PM.
Reply With Quote
  #10 (permalink)  
Old 04-28-2010, 04:25 PM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Ciao kronos79,

alla riga 365 del codice proposto:

row_txt = SubString(row_txt, 0, StrLength(row_txt_tmp))

sostituisci con:

row_txt = SubString(row_txt, StrLength(row_txt_tmp), StrLength(row_txt) - StrLength(row_txt_tmp))


Il codice proposto è un esempio che non prevede alcun controllo su le parole, per cui qualsiasi testo che supera la larghezza della pagina verrà troncato per tornare poi il resto sulla riga successiva...

Saluti,

Massimo

P.S. se hai realizzato delle procedure utilizzando questo codice sarei bel lieto di vedere pubblicati anche dei tuoi esempi, grazie...

-----------------------------------------------------------------------

Hi kronos79,

at line 365, proposed code:

row_txt = SubString(row_txt, 0, StrLength(row_txt_tmp))

replace with:

row_txt = SubString(row_txt, StrLength(row_txt_tmp), StrLength(row_txt) - StrLength(row_txt_tmp))


The proposed code is an example that does not provide any control over the words, so any text that exceeds the page width will be truncated to return then the rest on the next line...

Best regards,

Massimo

P.S. if you created the procedure using this code I would be happy to see published your examples, thanks and sorry for my English ...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
db2000 - INI maXim Italian Forum 16 11-07-2010 04:37 AM
db2000 text2unicode maXim Italian Forum 11 05-08-2009 09:55 AM
db2000 - vb Functions maXim Italian Forum 4 12-01-2008 09:46 AM
db2000 - GPS(c) maXim Italian Forum 2 05-29-2007 06:10 AM
db2000 - RCC maXim Italian Forum 4 05-26-2007 08:32 AM


All times are GMT. The time now is 11:47 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0