Flattening Pages Issue

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

jps8834
User
Posts: 15
Joined: Tue Jan 27, 2009 2:38 pm

Flattening Pages Issue

Post by jps8834 »

Hello... We are having a slight problem with your software. It seems as though when we try to save a file to the computer in which we flattened all the fields on the page- The saved file no longer has the flattened fields.

I tried this from our software, and then tried it from the standalone program, and it still didn't work. Is there something that I am doing wrong in saving the file?

Here is something like what I am doing, and I will try to include a PDF file that you can test with.

(Delphi 5 is the language we are using)

Code: Select all

var
  java, error : WideString
  
begin
  ...
  PDFXViewer.openPDFDocument( PDFName );
  PDFXViewer.GetActiveDocument(pdfDocumentID);
  error:='';
  java := 'this.flattenPages();';
  try
    PDFXViewer.RunJavaScript(java,error,0,PXCVA_NoUI);
    PDFXViewer.SaveDocument(pdfDocumentID, pdfDocumentName[i], PXCVA_DocumentSaveAs, PXCVA_NoUI);
  except
    ...
end;
Any ideas as to what I am doing wrong?
You do not have the required permissions to view the files attached to this post.
jps8834
User
Posts: 15
Joined: Tue Jan 27, 2009 2:38 pm

Re: Flattening Pages Issue

Post by jps8834 »

Sometimes it seems to flatten all of the fields except those that have text, although it seems to flatten all images on to the page. We need to have all of the fields completely flattened for submission of the PDFs, and it seems like it used to work, but seems to have stopped.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Flattening Pages Issue

Post by Ivan - Tracker Software »

Problem is fixed now. Fix will be available into the next build.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
jps8834
User
Posts: 15
Joined: Tue Jan 27, 2009 2:38 pm

Re: Flattening Pages Issue

Post by jps8834 »

When is the next build?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Flattening Pages Issue

Post by John - Tracker Supp »

Hi,

approx 4 weeks - if all goes to plan ;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com