CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Is possible pdf file generate with PIC?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
respected



Joined: 16 May 2006
Posts: 95

View user's profile Send private message

Is possible pdf file generate with PIC?
PostPosted: Mon Jun 08, 2015 6:01 am     Reply with quote

Hi all;

I want to generate pdf file. Does anyone have any idea ?

Thanks..
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jun 08, 2015 7:15 am     Reply with quote

Yes, you can get a PIC to produce a PDF file though it's the best processor for the application.
Now how fast the PIC can generate it depends upon clock speed, data source interface and the actual PIC. You'd obviously need a lot of RAM(say an external SPI unit or 2 or 3....) as well as data storage for the PDF(say a Vinculum based flashdrive or similar).
Speed is also dependent on how you cut code for the project.
There's a lot of 'details' needed like size of PDF, source of data,time to complete project, money available but it is possible.

heck anything can be done with a PIC !!

jay
respected



Joined: 16 May 2006
Posts: 95

View user's profile Send private message

PostPosted: Mon Jun 08, 2015 7:40 am     Reply with quote

Thanks.
I think i will use pic18f46j50 and nand flash . But I don't know how can i do.

for example: is Haru free PDF library usefull or not. or other pdf library?
if you have any idea can you direct me please?
Ttelmah



Joined: 11 Mar 2010
Posts: 19339

View user's profile Send private message

PostPosted: Mon Jun 08, 2015 11:38 am     Reply with quote

The library, probably no, but the documentation in the library, yes.

First, you need to start by working out what features of pdf you are going to support?. Just text, or are you going to embed pitcures etc.?. Then, for each part you are going to handle, you have to work out what happens to your incoming source data, and how it has to be modified to make it into the pdf output. This then you have to code. Some parts of the coding operations, may be copyable from the library, but with significant modification.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Jun 09, 2015 2:18 am     Reply with quote

Yes, a PIC processor can generate PDF.
But it will take a lot of effort to get it working and speed will be slow.

Other processor families with more memory and processing power are much better suited for the job and will cost you only little bit more.

Instead of PDF, is it possible for you to use HTML? That's easy to generate.
respected



Joined: 16 May 2006
Posts: 95

View user's profile Send private message

PostPosted: Tue Jun 09, 2015 4:56 am     Reply with quote

thanks @ckielstra.

but pdf file the most important for me.
Ttelmah



Joined: 11 Mar 2010
Posts: 19339

View user's profile Send private message

PostPosted: Tue Jun 09, 2015 5:16 am     Reply with quote

You are missing the critical line in what I said:
"you need to start by working out what features of pdf you are going to support?. Just text, or are you going to embed pictures etc.?."

The point is that pdf, is not 'one format'. A full pdf generator, would start off being probably 100* the size of even the largest PIC's memory space.
Pdf is effectively a page description language. You have things like a paragraph of text, and attached to it, the description of how it is to be laid out, spaced, what font is to be used etc. etc..

It is relatively simple to write a basic generator, that can produce one standard page layout, from perhaps a block of text. However every extra thing you want to include is going to need the code to handle it, and if the data involved is not directly in a format that can be output in a pdf, you will also need the code to convert to a suitable format (and 'know' what size is then involved in the layout.

It is currently a totally 'open' question. Can a PIC format something into pdf?. Yes. How much it can handle, and what formats it can handle are where the complexity comes in.
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Tue Jun 09, 2015 10:12 am     Reply with quote

You might want to start with the wiki description of pdf and follow those links etc. for determining exactly what you are trying to do - it is a complete ISO standard these days (and can be quite complex). See http://en.wikipedia.org/wiki/Portable_Document_Format

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group