![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
pdfnow Guest
|
Create a PDF file on an SD card ? |
Posted: Mon Jul 20, 2009 4:56 pm |
|
|
I can read/write to sd cards using a PIC18f2620. Does anyone think there is a way to create a simple pdf file on the card with text only. If the use want to save a file with Hello World on the first line, what would the pdf file look like? Could it be created with CCS C and fit on a 18F2620? Thanks. |
|
![](templates/subSilver/images/spacer.gif) |
Rohit de Sa
Joined: 09 Nov 2007 Posts: 282 Location: India
|
|
Posted: Mon Jul 20, 2009 8:40 pm |
|
|
I don't think there is an easy way to create a pdf file using just text. You'd have to understand different parts of a PDF, which, IMHO, is not an easy task. PDFs are based on the PostScript language, and 'carry' with themselves several formatting options, images, strings, etc. Infact, a PDF is more like a script file, rather than a simple 'document'. This 'script file' like behaviour is what makes it platform independent.
From wiki: Quote: | The PDF combines three technologies:
* A subset of the PostScript page description programming language, for generating the layout and graphics.
* A font-embedding/replacement system to allow fonts to travel with the documents.
* A structured storage system to bundle these elements and any associated content into a single file, with data compression where appropriate.
|
Rohit |
|
![](templates/subSilver/images/spacer.gif) |
mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
|
Posted: Tue Jul 21, 2009 1:30 am |
|
|
I have in the past made a pdf template, then did a replace at specific byte locations to put my own text. Open a pdf in a hex editor, find the locations, that might help.
Other than that, look for some php source on creating pdf's. |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|