#include <stdio.h>
#include <stdlib.h>
#include "pdf.h"
int main()
{
fd = ;
if (PDF_Start("e:\\test.pdf", "PDF Title", "PDF Author") == PDF_ERR_NONE)
{
PDF_AddPage(false);
PDF_AddText(300, 20, "Test PDF");
PDF_AddText(100, 50, "Test 1");
PDF_AddText(100, 80, "Test 2");
PDF_AddPage(false);
PDF_AddText(300, 20, "Test PDF 2");
PDF_Finish();
} else
{
printf("Error opening file!\n");
}
return 0;
}
- generate simple multipage document with/without encryption
- add PDF_ENCRYPT_R3 support
- add headers/footers
- different text colors
- add possibility to use different not embedded fonts
- add graphical objects: frames (streams with no text formatting)
- add possibility to use images
- write documentation
- write FatFS wrapper
- add embedded font (because of big size - whole font should be stored)