Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

All power corrupts, but we need electricity.


devel / comp.lang.xharbour / Re: How to convert text file(s) to PDF format?

SubjectAuthor
o Re: How to convert text file(s) to PDF format?rodrego sandino

1
Re: How to convert text file(s) to PDF format?

<df11aa08-9121-470d-88ce-0ca38a8cb558n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16759&group=comp.lang.xharbour#16759

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:b4f:: with SMTP id x15mr6863328qkg.436.1628196580650; Thu, 05 Aug 2021 13:49:40 -0700 (PDT)
X-Received: by 2002:ac8:1487:: with SMTP id l7mr3046673qtj.345.1628196580442; Thu, 05 Aug 2021 13:49:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Thu, 5 Aug 2021 13:49:40 -0700 (PDT)
In-Reply-To: <j4skfk$3ml$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=88.202.230.45; posting-account=kOaMbAoAAADBi_KIblwKo-rtDchXiP8x
NNTP-Posting-Host: 88.202.230.45
References: <cdc06f52-c642-48b2-8073-b64f571cc025@k12g2000vbd.googlegroups.com> <73c83a7b-9ed8-457f-b463-853ef8931046@e34g2000prn.googlegroups.com> <46f43a62-1c07-4c93-bab0-6dbb50429b85@s42g2000prb.googlegroups.com> <56001dd5-5d23-4278-8abe-a0571fbd932c@h6g2000yqe.googlegroups.com> <j4skfk$3ml$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <df11aa08-9121-470d-88ce-0ca38a8cb558n@googlegroups.com>
Subject: Re: How to convert text file(s) to PDF format?
From: sandinisto77@gmail.com (rodrego sandino)
Injection-Date: Thu, 05 Aug 2021 20:49:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 102
 by: rodrego sandino - Thu, 5 Aug 2021 20:49 UTC

On Thursday, September 15, 2011 at 6:37:04 PM UTC+8, Jayadev wrote:
> Dear Dwa Grosze,
>
> Please see your private mail, I have sent you a txt2pdf.prg which I
> generally use, you may have to modify it suitably to suit your environment.
>
> HTH,
>
> Warm regards,
>
> Jayadev
>
> "Dwa Grosze" <dwagr...@gmail.com> wrote in message
> news:56001dd5-5d23-4278...@h6g2000yqe.googlegroups.com...
> On 14 Wrz, 18:56, dlzc <dl...@cox.net> wrote:
> > On Sep 13, 5:27 pm, dlzc <dl...@cox.net> wrote:
> >
> > > Dear Dwa Grosze:
> >
> > > On Sep 13, 4:49 am, Dwa Grosze <dwagros...@gmail.com> wrote:
> > > ...
> >
> > > > The problem is as above. I searched all this group with
> > > > various keywords but didn't found any useful info. I'm
> > > > new to xHb, so maybe that's a reason too :) Some
> > > > discussion on coverting pdf to txt I found but none of
> > > > them says sth like this: yoy got a function ... and so on.
> > > > Is there any function in xHB to do this or I'll have to try
> > > > some other way?
> >
> > > How is the text file generated?
> >
> > I find the following methods exported in (an older copy of) PDFlib:
> > <QUOTE>
> > METHOD New( cFile, nLen, nHeigth, nWidth )
> > METHOD PdfNewPage( _cPageSize, _cPageOrient, _nLpi, _cFontName,
> > _nFontType, _nFontSize )
> > METHOD PdfClosePage()
> > METHOD PdfClose()
> > METHOD PdfPageSize( _cPageSize )
> > METHOD PdfPageOrient( _cPageOrient )
> > METHOD PdfSetLpi( _nLpi )
> > METHOD PdfSetFont( _cFont, _nType, _nSize, cId )
> > METHOD PdfDrawHeader()
> > METHOD PdfMargins( nTop, nLeft, nBottom )
> > METHOD PdfImageInfo( cFile )
> > METHOD PdfTiffInfo( cFile )
> >
> > METHOD Pdfjpeginfo( cFile )
> > METHOD Pdfimage( cFile, nRow, nCol, nHeight, nWidth, cId,
> > Scalex, Scaley )
> > METHOD Pdfatsay( cString, nRow, nCol, lExact, cId )
> > METHOD Pdfgetfontinfo( cParam )
> > METHOD Pdfpagenum( n )
> >
> > METHOD Getpagetype( nWidth, nHeight )
> > METHOD Settop( N ) INLINE ::aReport[ PDFTOP ] := N // top
> > METHOD Setleft( N ) INLINE ::aReport[ PDFLEFT ] := N // left &
> > right
> > METHOD Setbottom( N ) INLINE ::aReport[ PDFBOTTOM ] := N
> > METHOD Pdf_Rect( x, y, width, height )
> > METHOD Pdf_Stroke()
> > METHOD Setoverline( l )
> > METHOD Setunderline( l )
> > METHOD Pdfmoveto( X, Y )
> > METHOD Pdflineto( X, Y )
> > METHOD Pdfsetlinewidth( w )
> > METHOD Pdfsetlinecap( w )
> > METHOD Pdfsetdash( b, w )
> > METHOD Pdfsave( lBuf )
> > METHOD Pdfrestore( lBuf )
> > METHOD Pdfunder( Text, Len, X, Y )
> > METHOD Pdfover( Text, Len, x, y )
> > METHOD Pdf_Str_Width( Text, Len, Font, Size )
> > METHOD Pdfsetrgbcolor( R, G, B )
> > METHOD Pdfscale( X, Y, lBuf )
> > METHOD Pdftranslate( tX, tY )
> >
> > METHOD Pdfpnginfo( cFile )
> > METHOD Pdfrotate( pHi )
> > METHOD Pdfclosepath()
> > METHOD Pdfendpath()
> >
> > METHOD Pdfcurveto( x1, y1, x2, y2, x3, y3 )
> > METHOD Pdfcomplevel( x )
> > METHOD Pdfinfo( cTitle, cAuthor, cKey, cCreator )
> > METHOD PDF_setrgbcolor_fill( R, G, B )
> > <END QUOTE>
> >
> > ... so you might be able to generate the PDF with the formatting you
> > want, without making the text file first.
> >
> > David A. Smith
>
> Thank You for such a hugh part of knowledge! I hope it'll help me in
> my future xHB tasks. Now I just have to do something really simple. I
> got a flat text file with control chars/marks like CRLF, eject and
> EndOfFile and I just have to "save it as" pdf format. If *it* really
> needs wider study and usage of the library You've mentioned I'll got
> more work I thought in my most audacious presumptions...:(
>
> Thanks!
hi my dear brother can you send this prg file for me please i urgently need it

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor