Hello,
I have already asked this question in the past on the forums, but I cannot seem to find the post!
I have a directory that is generated and page 1 will have all text on it at #333333 RGB color, but on the next page it will look as if the text changes to #999999 or so. I have no idea what is going on. I had this fixed in the past and am in the process of porting my directory generator code to a new website. I haven't modified any of the logic or creation classes that I have, yet this problem creeped up.
Any ideas?
P.S. Sorry this is so vague, if you need me to provide screenshots, please ask.
Odd Text Color Changing Issue
Re: Odd Text Color Changing Issue
Support · Nov 22, 2007Hello,
Please make sure that you are having the latest build of our product. You can download the latest build from our CustomerArea
by logging in using your serial number. If you still have the problem then please send over a code sample which can recreate the behavior to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it.
Thanks,
ceTe Software Support Team.
Re: Odd Text Color Changing Issue
Forum member · Nov 24, 2007It will be very difficult for me to get you the code because it runs off of a database and has 6 different class files that are used in the generation of my document. I guess what I am trying to say is that it works perfectly on my old website, and when I ported it over to my new website (added the class files and relinked them with new namespaces) this problem arose. There was no change to the actual code that generates the document. It puzzles me that it would work on one site, and not on the next.
Would screen shots work so that you can see what I'm talking about? If so, please give me an email address where I could send them.
Thanks!
Matt
Re: Odd Text Color Changing Issue
Support · Nov 26, 2007Hello Matt,
Can you please send the portion of your source code where you are setting the color and also send the output PDF document to our [^a|mailto:support@cete.com|Support Team^], so that they can take a look and figure out the exact cause of the behavior?
Thanks,
ceTe Software Support Team
Re: Odd Text Color Changing Issue
Forum member · Nov 26, 2007Okay... After a little more digging, I have found that I have a pagenumberinglabel that I am setting to #666666 for the color. If I remove this, my document looks right, but when I leave it in I get the color issue.
Code for PageNumberingLabel:
ceTe.DynamicPDF.Template docTemplate = new ceTe.DynamicPDF.Template();
ceTe.DynamicPDF.PageElements.PageNumberingLabel pageNum = new ceTe.DynamicPDF.PageElements.PageNumberingLabel("%%CP%% of %%TP%%", 0, 0, 612, 36, m_ttfVerdanaBold, 12, ceTe.DynamicPDF.TextAlign.Center, new WebColor("#666666"));
// Create an achor group - this is needed to fix the issue where when merging a generator created PDF to a mergedocument
// the margins are automatically set at 50px and the pageNumberingLabel goes outside of the margins and is not displayed
ceTe.DynamicPDF.PageElements.AnchorGroup group = new ceTe.DynamicPDF.PageElements.AnchorGroup(pageNum.Width, pageNum.Height, Align.Center, VAlign.Bottom);
group.AnchorTo = ceTe.DynamicPDF.PageElements.AnchorTo.Edges;
group.Add(pageNum);
// Add the anchor group to the template
docTemplate.Elements.Add(group);
// Apply the template to the mergedocument
mdPDF.Template = docTemplate;
Any idea as to why this would cause my document to inherit the pageNumberingLabels color after the first page or so?
Re: Odd Text Color Changing Issue
Support · Nov 26, 2007Hello,
Does the color on Page 1 show up fine? Can you please send over the output PDF document to the [^a|mailto:support@cete.com|Support Team^]?
Are you trying to add the PageNumberinglabel to existing PDF documents you are merging? Can you please confirm if these are the steps you are following?
1. Generate the PDF document using Generator for .NET product.
2. Merge it using Merger for .NET product.
3. Adding PageNumberingLabel to the AnchorGroup
4. Adding AnchorGroup to the Template.
5. Applying Template to the MergeDocument.
I tried adding two pages with label on each. Then added the PageNumberinglabel using the sample code you sent but the color of the labels as well as the PageNumberingLabel comes out fine.
Thanks,
ceTe Software Support Team
Re: Odd Text Color Changing Issue
Forum member · Nov 26, 2007I believe I may have something out of order from your list.
I will attach my entire code section for my generator (less the actual code that generates the templates and content pages)
I will also send over two PDF documents, one which is how it currently looks, and the other how it looks ported over (using the same code and ceTe.DynamicPDF.20.dll).
Thanks!
Matt