Hi Ronny, I think, I was able to fix the problem with the information from Adobe preflight. References in inherited attributes (especially resources), have not been adapted.
This is fixed now in SVN. Could you please check if this solves your problem?
Cheers,
Dominik
Am Wednesday 10 November 2010 schrieb [email protected]:
> Hi Domink,
>
> I cannot send my current test document cause security issues.
> But I will try to make a new test document.
> I send you the report from Adobe Preflight syntax check (see attached
> file). Hope that helps.
>
> Regards Ronny.
>
>
> ----- Original Nachricht ----
> Von: Dominik Seichter <[email protected]>
> An: [email protected]
> Datum: 10.11.2010 13:57
> Betreff: Re: Aw: Re: [Podofo-users] PdfDocument->append does not support
> inheritable page objects
>
> > Hi Ronny,
> >
> > Thanks for the info, your fix for the loop is correct. My bad. I commited
> > it to
> > SVN. This change should not cause a corrupt PDF file ... maybe there is
> > another
> > issue? Do you have an example PDF?
> >
> > Cheers,
> >
> > Dominik
> >
> > Am Wednesday 10 November 2010 schrieb [email protected]:
> > > Hi Dominik,
> > >
> > > I have checked this with the latest SVN trunk, but it does not work.
> > > First I have got an Runtime Exception for the while - loop. After I
> > > have changed to: "while( pInherited->GetLength() != 0)" the function
> > > is run through. But the created pdf file are corrupt - it cannot be
> > > opened.
> > >
> > > Greeting Ronny.
> > >
> > > ----- Original Nachricht ----
> > > Von: Dominik Seichter <[email protected]>
> > > An: [email protected]
> > > Datum: 05.11.2010 16:41
> > > Betreff: Re: [Podofo-users] PdfDocument->append does not support
> > > inheritable page objects
> > >
> > > > Hi Ronny,
> > > >
> > > > Thanks for reporting this problem.
> > > > I think your solution is perfectly valid, I commited another fix,
> >
> > though.
> >
> > > > PoDoFo just checks for all attributes that can possible be inherited
> >
> > and
> >
> > > > copies them. The advantage of this solution would be, that PoDoFo can
> > > > create a
> > > > nicely balanced pages tree, which is not possible, if we simply copy
> >
> > it.
> >
> > > > Could you please check if your problem is solved with SVN trunk?
> > > >
> > > > Cheers,
> > > >
> > > > Dominik
> > > >
> > > > Am Wednesday 03 November 2010 schrieb [email protected]:
> > > > > Hi,
> > > > >
> > > > > only the inheritable page object "MediaBox" are supported - see
> >
> > source
> >
> > > > > code. But the other ones "Resources", "CropBox" and "Rotate" are
> > > > > not supported. If you append a pdf document where these page
> > > > > objects defined in the PageTree object (ref. PDF Spec "7.7.3.2
> > > > > Page Tree Nodes") the result is a corrupt PDF document.
> > > > >
> > > > > My solution that works for me:
> > > > > Actually it copy all objects from the source document to the new
> >
> > target
> >
> > > > > document. The pages will insert one by one the target page tree.
> > > > > I have changed this that it inserts only the page tree from source
> > > >
> > > > document
> > > >
> > > > > in the page tree of the target document as sub tree.
> > > > >
> > > > > This code replace the "for ..." - loop:
> > > > > ####
> > > > > PdfPagesTree* rPageTree = rDoc.GetPagesTree();
> > > > > PdfObject* pObj = m_vecObjects.GetObject( PdfReference(
> > > > > rPageTree->GetObject()->Reference().ObjectNumber() + difference, 0
> > > > > )
> >
> > );
> >
> > > > > m_pPagesTree->InsertPage( this->GetPageCount()-1, pObj );
> > > > > int cnt = this->GetPageCount();
> > > > > cnt += rDoc.GetPageCount() -1 ;
> > > > > m_pPagesTree->GetObject()->GetDictionary().AddKey( "Count",
> >
> > PdfVariant(
> >
> > > > > static_cast<pdf_int64>(cnt) ) ); #####
> > > > >
> > > > >
> > > > > Regards Ronny.
> >
> > -------------------------------------------------------------------------
> >
> > > > --
> > > >
> > > > > --- Achieve Improved Network Security with IP and DNS Reputation.
> > > > > Defend against bad network traffic, including botnets, malware,
> > > > > phishing sites, and compromised hosts - saving your company time,
> > > > > money, and embarrassment. Learn More!
> > > > > http://p.sf.net/sfu/hpdev2dev-nov
> > > > > _______________________________________________
> > > > > Podofo-users mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/podofo-users
--
Dominik Seichter - [email protected] - http://domseichter.blogspot.com
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
