资源简介
PoDoFo 32位SDK 可以使用版本,经亲手测试可以实现PDF文件的读写
代码片段和文件信息
/***************************************************************************
* Copyright (C) 2007 by Dominik Seichter *
* domseichter@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Library General Public License as *
* published by the Free Software Foundation; either version 2 of the *
* License or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU Library General Public *
* License along with this program; if not write to the *
* Free Software Foundation Inc. *
* 59 Temple Place - Suite 330 Boston MA 02111-1307 USA. *
***************************************************************************/
#include “PdfAcroForm.h“
#include “PdfArray.h“
#include “PdfDictionary.h“
#include “PdfDocument.h“
#include “PdfFont.h“
#include “PdfDefinesPrivate.h“
#include
namespace PoDoFo {
/*
We use NULL for the PdfElement name since the AcroForm dict
does NOT have a /Type key!
*/
PdfAcroForm::PdfAcroForm( PdfDocument* pDoc EPdfAcroFormDefaulAppearance eDefaultAppearance )
: PdfElement( NULL pDoc ) m_pDocument( pDoc )
{
// Initialize with an empty fields array
this->Getobject()->GetDictionary().AddKey( PdfName(“Fields“) PdfArray() );
Init( eDefaultAppearance );
}
PdfAcroForm::PdfAcroForm( PdfDocument* pDoc Pdfobject* pobject EPdfAcroFormDefaulAppearance eDefaultAppearance )
: PdfElement( NULL pobject ) m_pDocument( pDoc )
{
Init( eDefaultAppearance );
}
void PdfAcroForm::Init( EPdfAcroFormDefaulAppearance eDefaultAppearance )
{
// Add default appearance: black text 12pt times
// -> only if we do not have a DA key yet
// Peter Petrov 27 April 2008
//this->Getobject()->GetDictionary().AddKey( PdfName(“NeedAppearances“) PdfVariant(true) );
if( !this->Getobject()->GetDictionary().HasKey(“DA“) ||
eDefaultAppearance == ePdfAcroFormDefaultAppearance_BlackText12pt )
{
//PdfFont* pFont = pParent->GetDocument()->CreateFont( “Helvetica“ false );
// TODO: It is no good idea to always embedd arial
// but handling of non embedded helvetica is currently broken
PdfFont* pFont = m_pDocument->
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-08-02 12:17 PoDoFo.Include\
文件 1149 2009-07-21 23:46 PoDoFo.Include\Pdf3rdPtyForwardDecl.h
文件 4605 2010-06-02 05:11 PoDoFo.Include\PdfAcroForm.cpp
文件 4090 2010-03-22 16:48 PoDoFo.Include\PdfAcroForm.h
文件 4428 2010-06-07 22:39 PoDoFo.Include\PdfAction.cpp
文件 4456 2009-06-30 19:44 PoDoFo.Include\PdfAction.h
文件 10292 2010-06-07 22:39 PoDoFo.Include\PdfAnnotation.cpp
文件 13638 2010-04-30 05:01 PoDoFo.Include\PdfAnnotation.h
文件 4458 2010-10-17 04:37 PoDoFo.Include\PdfArray.cpp
文件 15315 2010-10-17 04:37 PoDoFo.Include\PdfArray.h
文件 4777 2009-11-14 19:09 PoDoFo.Include\PdfCanvas.cpp
文件 3912 2009-03-06 22:55 PoDoFo.Include\PdfCanvas.h
文件 41259 2010-10-25 19:28 PoDoFo.Include\PdfColor.cpp
文件 26973 2010-10-17 04:37 PoDoFo.Include\PdfColor.h
文件 5118 2010-10-11 19:45 PoDoFo.Include\PdfCompilerCompat.h
文件 6599 2010-08-18 23:58 PoDoFo.Include\PdfCompilerCompatPrivate.h
文件 3846 2010-06-02 05:11 PoDoFo.Include\PdfContents.cpp
文件 2977 2009-12-23 19:35 PoDoFo.Include\PdfContents.h
文件 8759 2010-10-13 22:36 PoDoFo.Include\PdfContentsTokenizer.cpp
文件 5365 2010-07-01 22:27 PoDoFo.Include\PdfContentsTokenizer.h
文件 1721 2010-10-13 22:36 PoDoFo.Include\PdfData.cpp
文件 4068 2010-10-13 22:36 PoDoFo.Include\PdfData.h
文件 1749 2009-11-22 08:12 PoDoFo.Include\PdfDataType.cpp
文件 4725 2010-10-13 22:36 PoDoFo.Include\PdfDataType.h
文件 3774 2009-07-28 13:12 PoDoFo.Include\PdfDate.cpp
文件 4354 2009-07-20 16:02 PoDoFo.Include\PdfDate.h
文件 16747 2010-10-13 22:36 PoDoFo.Include\PdfDefines.h
文件 779 2010-08-18 23:58 PoDoFo.Include\PdfDefinesPrivate.h
文件 6158 2009-07-28 13:12 PoDoFo.Include\PdfDestination.cpp
文件 11535 2010-05-15 19:22 PoDoFo.Include\PdfDestination.h
文件 9127 2010-10-13 22:36 PoDoFo.Include\PdfDictionary.cpp
............此处省略170个文件信息
评论
共有 条评论