mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-11-08 06:28:27 +01:00
Default CropBox should be the full MediaBox.
This commit is contained in:
parent
35ea209c73
commit
45899f8a8d
15
TODO.md
15
TODO.md
@ -1,17 +1,10 @@
|
||||
To-Do List
|
||||
==========
|
||||
|
||||
- All of the object write code
|
||||
- All of the stream write code
|
||||
- Page create method
|
||||
- Write out trailer
|
||||
- How to handle object references between documents, i.e., if I copy a page from
|
||||
one PDF to another, there are a bunch of resources that also need to be
|
||||
copied. A dictionary with an object reference can't be copied directly as the
|
||||
object number in the new PDF will likely be different than the old one.
|
||||
- Add _pdfio_map_t with original pdfio_file_t * and object numbers
|
||||
- Add _pdfioObjCopy function
|
||||
- Add _pdfioFileGetMappedObject function to get the new object number
|
||||
- Resources:
|
||||
- Fonts
|
||||
- ICC profiles/standard color spaces
|
||||
- Others?
|
||||
- Security handlers (RC4 + AES, MD5 + SHA-256) for reading encrypted documents.
|
||||
- Signature generation/validation code
|
||||
- Documentation
|
||||
|
@ -198,11 +198,9 @@ pdfioFileCreate(
|
||||
}
|
||||
else
|
||||
{
|
||||
// Default to "universal" size (intersection of A4 and US Letter) with 1/4" margins
|
||||
pdf->crop_box.x1 = 18.0f;
|
||||
pdf->crop_box.y1 = 18.0f;
|
||||
pdf->crop_box.x2 = 210.0f * 72.0f / 25.4f - 18.0f;
|
||||
pdf->crop_box.y2 = 11.0f * 72.0f - 18.0f;
|
||||
// Default to "universal" size (intersection of A4 and US Letter)
|
||||
pdf->crop_box.x2 = 210.0f * 72.0f / 25.4f;
|
||||
pdf->crop_box.y2 = 11.0f * 72.0f;
|
||||
}
|
||||
|
||||
// Create the file...
|
||||
|
@ -313,8 +313,8 @@ write_page(pdfio_file_t *pdf, // I - PDF file
|
||||
|
||||
fputs("pdfioStreamPuts(...): ", stdout);
|
||||
if (pdfioStreamPuts(st,
|
||||
"0 g 18 18 559 760 re 72 72 451 648 re f*\n"
|
||||
"1 0 0 RG 18 18 559 760 re 72 72 451 648 re S\n"))
|
||||
"1 0 0 RG 0 g 5 w\n"
|
||||
"18 18 559 760 re 72 72 451 648 re B*\n"))
|
||||
puts("PASS");
|
||||
else
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user